You are on page 1of 1

printf ( "The product of %d and %d is %d\n", x, y, x*y);

d) Identify error: '=>' and '=='


→ Fix: if ( number >= largest )
                 largest = number;

e) Identify error: '*/' and '/*'


→ Fix: /* Program to determine the largest of three integers */

f) Identify error: 'Scanf' and 'anInteger';


→ Fix: scanf ( "%d", &anInteger);

g) Identify error: Missing the value '%d' for 'x %y'


→ Fix: printf ( "Remainder of %d divided by %d is %d\n", x, y, x%y );

You might also like