/* * Assignment5.funcitons.c */ #include #include "Assignment5.headers.h" //////////////////////////////////////////// int input_number(void) // header for input_number, takes nothing, returns int { float zz; // declare float do // execute bock before evaluating while { printf("integer: "); // prompt for input scanf("%f", &zz); // read float from stdin getchar(); // clear input buffer } while ( ( (int)zz != zz) && printf("Not and Int.\n Enter an ") ); // keep asking while zz is not an int // print warning as well return ((int)zz); } //////////////////////////////////////////// void print_result( int ll, int mm, int pp ) { printf("%d to the %d = %d\n", ll, mm, pp); // print result } ////////////////////////////////////////////