INPUT a field

Complete the previous lesson to unlock this one.

Back to the path

INPUT a field

Level 1: Records. INPUT can target a field directly. The paper writes INPUT Pupil.Name, not a temporary variable and a copy.

Read a name and a mark straight into the record. Output one line:

Name scored Mark

Example: input Ada then 80 → Ada scored 80.