Program name:  user-input.c

Language features of C contained in "user-input.c"
 scanf( ) function to acquire user's input from the keyboard
 user's keyboard input lands in a variable, whose type and name are given to scanf( )

Function:
  requests and accepts text input that the user types on the keyboard, then prints it back at him

Source code:

Explanations:

To do:

Key this program in, using a text editor. Save it in a file named "user-input.c". Then, in order to convert it into a form that contains correct Intel machine instructions, thus enabling the computer to run it, bring up the Windows command box and give this command:

bcc32 user-input.c

Alternatively use a browser to go to a C compiler web site. Cut your program's text from the text editor and paste it into the appropriate place in the web site. Tell the web site to compile (there's generally a button that says "compile" or maybe "run".)

If there are no error messages, a new file named "user-input.exe" will result. Then give the command:

user-input.exe

A question appears on the monitor, "What is your favorite integer?" and the program waits for you to type one in. After you type it, and press the enter key, it reflects it by printing your number back at you on the monitor.