Input/Output for lines of text: Difference between revisions

m
added a ;Task: and ;Related task: (bold) headers, added other whitespace to the task's preamble.
m (→‎{{header|Lua}}: fixed tab spacing)
m (added a ;Task: and ;Related task: (bold) headers, added other whitespace to the task's preamble.)
Line 1:
{{draft task}}
 
The first line contains the number of lines to follow, followed by that number of lines of text on STDIN. Output to STDOUT each line of input by passing it to a method as an intermediate step. The code should demonstrate these 3 things. See also [[Input/Output for Pairs of Numbers]] and [[File/Input and Output]].
;Task:
The first line contains the number of lines to follow, followed by that number of lines of text on   STDIN.
 
Write to   STDOUT   each line of input by passing it to a method as an intermediate step. The code should demonstrate these 3 things.
 
 
;Sample input with corresponding output:
 
'''Input'''
<pre>3
3
hello
hello world
Line 12 ⟶ 18:
 
'''Output'''
<pre>hello
hello
hello world
Pack my Box with 5 dozen liquor jugs</pre>
</pre>
 
 
;Related tasks:
* &nbsp; [[Input/Output for Pairs of Numbers]]
* &nbsp; [[File/Input and Output]]
<br><br>
 
=={{header|ALGOL 68}}==