I would like to know a cleaner way to get the output shown below.
// addition
resultFraction = [frac1 add: frac2];
NSLog(@"%i/%i + %i/%i = %i/%i", [frac1 numerator], [frac1 denominator],
[frac2 numerator], [frac2 denominator],
[resultFraction numerator], [resultFraction denominator]);
2010-03-26 02:33:51.245 7x1[5628:10b] Enter a fraction: (number space number)
1 2
2010-03-26 02:33:53.502 7x1[5628:10b] Enter a fraction: (number space number)
3 4
2010-03-26 02:33:54.251 7x1[5628:10b] 1/2 + 3/4 = 5/4
2010-03-26 02:33:54.251 7x1[5628:10b] 1/2 - 3/4 = -1/4
2010-03-26 02:33:54.252 7x1[5628:10b] 1/2 * 3/4 = 3/8
2010-03-26 02:33:54.253 7x1[5628:10b] 1/2 / 3/4 = 2/3
The Debugger has exited with status 0.