144k views
2 votes
How can we use variables to store information in our programs?

1 Answer

6 votes
Computer programs use variables to store information.
...
To make a simple program that displays your name, you could program the computer to:
Ask for your name.
Store that answer as a variable called 'YourName'.
Display “Hello” and the string stored in the variable called 'YourName'
User Wolfrevokcats
by
4.9k points