Reading input from user

 

 

User can enter any sequence of characters. Pressing ENTER is an indication for the end of input

 

User should type sequence of digits that can be interpreted as an integer and after that press ENTER

 

                  

Reading input from an input file