/* Sums.c (c) Kari Laitinen http://www.naturalprogramming.com/ 2013-11-26 File created. 2013-11-26 Last modification. */ #include void print_sum( int first_integer_from_caller, int second_integer_from_caller ) { int calculated_sum ; calculated_sum = first_integer_from_caller + second_integer_from_caller ; printf( "\n The sum of %d and %d is %d.\n", first_integer_from_caller, second_integer_from_caller, calculated_sum ) ; } int main() { int first_integer, second_integer ; print_sum( 555, 222 ) ; printf( "\n As you can see, this program can print" "\n the sum of two integers. Please, type in" "\n two integers separated with a space:\n\n " ) ; scanf( "%d %d", &first_integer, &second_integer ) ; print_sum( first_integer, second_integer ) ; } /* Here is a sample run of this program: The sum of 555 and 222 is 777. As you can see, this program can print the sum of two integers. Please, type in two integers separated with a space: 333 444 The sum of 333 and 444 is 777. */