Practice
Input and outputCoreIGCSE 0478

Greet the user by name

IGCSE-style INPUT and OUTPUT practice: read a name and print a greeting in Cambridge pseudocode.

A program should ask the user for their name and then greet them.

Write pseudocode that reads one name and outputs a greeting that includes that name.

Your program should

  • Declare a STRING variable for the name.
  • Use INPUT to read the name.
  • Use OUTPUT to print a greeting that includes the name.

Sample input

Alex

Sample output

Hello Alex

Starter

Pseudocode
// Read a name and output a greeting that includes it.
DECLARE Name : STRING