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

  1. Store the input in a variable: name ← USERINPUT
  2. Display the message with OUTPUT: OUTPUT 'Hello ' + name

In AQA pseudo-code, how do you output more than one value in a single OUTPUT statement?

e.g. a name and a score

Separate the values with commas: OUTPUT name, score