Example
Write a C program to announce what number was entered as an input
/* announce number program */
printf(“Enter number(s) to display, Ctrl - Z to quit\n”);
result = scanf(“%d”, &i); /* read a number */
printf(“The input number is %i\n”, i);
result = scanf ( “%d”, &i); /* read a number */