/* * tourfunc3.c * * show how to return a value from a function */ #include int getnum(void) //Function header { int num; printf("Please enter an integer: "); scanf("%d", &num); return num; } int main(void) { int xx, yy; xx = getnum(); yy = getnum(); printf ("The sum of the two numbers %d and %d is %d\n", xx,yy,xx+yy); return 0; }