Anonymous user
Input/Output for lines of text: Difference between revisions
→{{header|C}}
Walterpachl (talk | contribs) m (→{{header|REXX}}: add Output sample) |
|||
Line 73:
}
</lang>
=={{header|Batch File}}==
<lang dos>
@echo off
setlocal enabledelayedexpansion
set /p lines=
for /l %%i in (1,1,%lines%) do set /p line%%i=
cls
for /l %%i in (1,1,%lines%) do echo !line%%i!
pause>nul
</lang>
{{in}}
<pre>
3
line 1
this is line 2
line 3 is the longest
</pre>
{{out}}
<pre>
line 1
this is line 2
line 3 is the longest
</pre>
=={{header|C}}==
|