User input

Goal

Write a program that asks the user for his/her name, and outputs something like “Hallo [the users name]” to the screen.

Extra

Ask the user to enter more information such as age. Store everything the user enters in variables. When the user is done answering your questions, output everything the user entered to the screen.

Language: Any*
Difficulty level: Very easy.
Estimated time: 5-10 minutes

*NOTE: User input can be more tricky in some languages then in other, but for most people this hsould be no problem.

 

This entry was posted in Uncategorised. Bookmark the permalink.