Input/Output for lines of text: Difference between revisions

no edit summary
No edit summary
Line 502:
bbb
ccc</pre>
 
=={{header|Ring}}==
<lang ring>
# Project : Input/Output for Lines of Text
# Date : 2017/10/18
# Author : Gal Zsolt (~ CalmoSoft ~)
# Email : <calmosoft@gmail.com>
 
see "n = "
give n
lines = list(number(n))
for i = 1 to n
see "lines[" + i + "] = " + nl
give lines[i]
next
see nl
printlines(lines)
 
func printlines(lines)
for i = 1 to len(lines)
see lines[i] + nl
next
</lang>
Input:
<pre>
3
hello
hello world
Pack my Box with 5 dozen liquor jugs
</pre>
Output:
<pre>
hello
hello world
Pack my Box with 5 dozen liquor jugs
</pre>
 
=={{header|Ruby}}==
2,468

edits