User input/Text: Difference between revisions
Content added Content deleted
(→{{header|Plain English}}: made runnable) |
(→{{header|Plain English}}: demonstrate how to use the contents of the variables) |
||
Line 1,733: | Line 1,733: | ||
Read a string from the console. |
Read a string from the console. |
||
Write "Enter a number: " to the console without advancing. |
Write "Enter a number: " to the console without advancing. |
||
Read a number from the console. |
Read a number from the console. |
||
\Now show the input values |
|||
Write "The string: " then the string to the console. |
|||
Write "The number: " then the number to the console. |
|||
</lang> |
|||
A sample run of the program: |
|||
{{out}} |
|||
<pre> |
|||
Enter a string: abc |
|||
Enter a number: 123 |
|||
The string: abc |
|||
The number: 123 |
|||
</pre> |
|||
=={{header|Pop11}}== |
=={{header|Pop11}}== |