Input/Output for lines of text: Difference between revisions

Content added Content deleted
No edit summary
Line 540: Line 540:
the program will read three lines from the console
the program will read three lines from the console
this is the third line</pre>
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}}==
=={{header|Objeck}}==