Computer Science for IGCSE & O level - Programming (Section 14 - No. 9)

What does the pseudocode example `INPUT myText;` do?
Prints 'myText' on the screen.
Reads a line of text from a file and stores it in a variable called 'myText'.
Takes input from the user and stores it in a variable called 'myText'.
Closes the file named 'myText'.

Explanation

The `INPUT` command is used to retrieve user input. The value given by the user is saved in a variable

Comments (0)

Advertisement