Keyboard Input & Screen Output Flashcards
All 2 cards in this deck
In AQA pseudo-code, how do you get a value from the keyboard and display a message that uses it?
e.g. ask for a name then greet the user
- Store the input in a variable:
name ← USERINPUT - Display the message with OUTPUT:
OUTPUT 'Hello ' + name
- Store the input in a variable:
In AQA pseudo-code, how do you output more than one value in a single
OUTPUTstatement?e.g. a name and a score
Separate the values with commas:
OUTPUT name, score