/*************************************************************************************** * * Description: This program takes in 2 integers and states * whether either is greater than 100. * * Input: Two integers * * Output: Statements as to whether either is greater than 100 * ***************************************************************************************/ #include main() { const int c = 100; int a, b; printf("Please type in two integers.\n"); /** prompts user **/ scanf("%d %d", &a, &b); printf("[%d %d]\n", a, b); /** echoes input **/ if (a > c) {printf("%d is greater than 100.\n", a);} /** states if a > 100 **/ if (b > c) {printf("%d is greater than 100.\n", b);} /** states if b > 100 **/ else {printf("Each of the integers is less than 100.\n");} }