/* Largeint.c (c) Kari Laitinen http://www.naturalprogramming.com/ 2013-11-20 File created. 2013-11-20 Last modification. */ #include int main() { int first_integer, second_integer, third_integer ; int found_largest_integer ; printf( "\n This program can find the largest of three" "\n integers you enter from the keyboard. Please," "\n enter three integers separated with spaces: " ) ; scanf( "%d %d %d", &first_integer, &second_integer, &third_integer ) ; if ( first_integer > second_integer ) { found_largest_integer = first_integer ; } else { found_largest_integer = second_integer ; } if ( third_integer > found_largest_integer ) { found_largest_integer = third_integer ; } printf( "\n The largest integer is %d.\n", found_largest_integer ) ; }