Solution for Exercise 7-14
ex0714
#include <stdio.h> int main() { int fav; printf("What is your favorite number: "); scanf("%d",&fav); printf("%d is my favorite number, too!\n",fav); return(0); }
Output
What is your favorite number: 78
78 is my favorite number, too!
Notes
* The value 78 was input above. Whatever value you input is reflected in the program's output.
Copyright © 1997-2024 by QPBC.
All rights reserved