if ( num1 == num2 ) {
printf( "%d is equal to %d\n", num1, num2 );
} /* end if */
if ( num1 != num2 ) {
printf( "%d is not equal to %d\n", num1, num2 );
} /* end if */
if ( num1 < num2 ) {
printf( "%d is less than %d\n", num1, num2 );
} /* end if */
if ( num1 > num2 ) {
printf( "%d is greater than %d\n", num1, num2 );
} /* end if */
if ( num1 <= num2 ) {
printf( "%d is less than or equal to %d\n", num1, num2 );
} /* end if */
if ( num1 >= num2 ) {
printf( "%d is greater than or equal to %d\n", num1, num2 );
} /* end if */
return 0; /* indicate that program ended successfully */
Monday, June 24, 2013
Trying operator of equation and relationship operator
Subscribe to:
Post Comments (Atom)






0 comments:
Post a Comment