Input/Output for pairs of numbers: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) m syntax highlighting fixup automation |
Drkameleon (talk | contribs) added Arturo |
||
Line 198: | Line 198: | ||
10 |
10 |
||
</pre> |
</pre> |
||
=={{header|Arturo}}== |
|||
<syntaxhighlight lang="arturo">printLine: function [line]-> print line |
|||
lineCount: to :integer strip input "" |
|||
do.times:lineCount [ |
|||
line: input "" |
|||
printLine line |
|||
]</syntaxhighlight> |
|||
=={{header|AWK}}== |
=={{header|AWK}}== |
||
<syntaxhighlight lang="awk">NR == 1 {n=$1; next} |
<syntaxhighlight lang="awk">NR == 1 {n=$1; next} |