Anonymous user
Input/Output for lines of text: Difference between revisions
→{{header|Nim}}
No edit summary |
|||
Line 540:
the program will read three lines from the console
this is the third line</pre>
=={{header|Nim}}==
<lang Nim>import strutils
proc write(line: string) =
echo line
let lineCount = stdin.readLine.parseInt()
for _ in 1..lineCount:
let line = stdin.readLine()
line.write()</lang>
=={{header|Objeck}}==
|