help me fix ....


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

printf( "The product of %d and %d is %d\n”, x, y ); <= I fixed but not sure





2/ if ( number => largest )
largest == number;

don’t know how to fix this one????
1. printf( "The product of %d and %d is %d\n", x, y , x*y)
2.
1
2
if ( number > largest )
    largest = number;
Last edited on
2. largest = number;

Remember == is relational meaning it compares. You want to assign value, hence we only need on equal sign.
Topic archived. No new replies allowed.