/**************************************************************************** * scanf1.c * * Computer Science 50 * David J. Malan * * Reads a number from the user into an int. * * Demonstrates scanf and address-of operator. ***************************************************************************/ #include int main(int argc, char *argv[]) { int x; printf("Number please: "); scanf("%d", &x); printf("Thanks for the %d!\n", x); }