/* * larger.c * Purpose: write a program named larger.c that uses two variables. * have the program ask the user for an integer and read the user's response, * saving the response in the memory address of the variable abc. * Do the same for the second integer in placing the result in def. * Have the program output which ever number is greater. */ #include int main(void) { int abc,def; printf( " Please enter an integer: "); scanf( "%d", &abc); printf( " Please enter another integer: "); scanf( "%d", &def); if (abc == def ) { printf(" They are equivilent: %d.\n", abc); return 0; } if ( abc > def ) { printf(" The larger number is %d.\n", abc); } else { printf(" The larger number is %d.\n", def); } return 0; }