Module: VARIABLES. OUTPUT FORMATS


Problem

3/6

Entering Variable Values

Theory Click to read/hide

Enter statement
In order for the user to be able to set the value of the variable himself, it is necessary to be able to enter values ​​from the keyboard. 
The input operator is written like this:
 
read(a);

After this statement, the data that is entered from the keyboard is stored in a certain variable.
You can also combine several read() statements into one.
For example, the entry read(a); read(b); performs the same actions as writing read(a, b); that is, the first entered data is entered into the variable a, the second into the variable b.

Problem

Rabbit Clover began to study the input operator so that his programs would become more universal and work on different sets of values.
He wants to type in the  values ​​of six variables and display them on the screen to make sure the values ​​are in the right variables. But he made some mistakes in the program.
Help him fix them.

1. On the fourth and fifth lines, correct the errors in writing the input statements so that the values ​​of the variables indicated on the line are entered, using one read command per line.
2. On the sixth line, write your own input statement that enters values ​​for the two variables e and f. Use one input command.
3. In the seventh line, write an operator for displaying the values ​​of all variables on the screen in alphabetical order, separated by a space.