Get integer input from user and print it as is.
You must guide user to input integer, with message "Input an integer: "
Then, print with message "You typed: "
We recommend you to modify line 7 from the given skeleton code, not adding nor removing any line.
Check run screen example below.
Input an integer: 5 You typed: 5 |
Text with the gray background is printed from the code, while text without background is input from user.
Use 'Test' and 'Run' function in goorm.
Be careful:
2000 ms
512 MB