3.1

INPUT a value

1/6

INPUT a value

Level 3: Input. Most Paper 2 algorithms start by reading data. INPUT pauses until a value is provided.

INPUT Name reads a value into Name. An optional prompt string after a comma is shown above the field.

Run it and type a name, or press Check — hidden tests feed the input for you.