/* File: scanfc.c Input to the program from the terminal */ #include int main() { int num; /* declare num as an int */ double d; /* declare d as a double */ /* prompt the user for input */ printf("Please input one integer and one floating-point number\n"); /* wait for the user to input an integer for num, and a floating-point number or integer for d */ scanf("%d%lf",&num, &d); /* display the user's input */ printf("Input values are %d and %f, their product is %f\n", num, d, num*d); return 0; }