Loops/For with a specified step: Difference between revisions

m
→‎{{header|E}}: Added code for the Euphoria language, + explanation.
(Pari/GP)
m (→‎{{header|E}}: Added code for the Euphoria language, + explanation.)
Line 175:
}
println("who do we appreciate?")</lang>
 
=={{header|Euphoria}}==
 
<lang Euphoria>
for i = 1 to 10 by 2 do
? i
end for
</lang>
As a note, <code>? something</code> is shorthand for:
<lang Euphoria>
print(1, something)
puts(1, "\n")
</lang>
 
<code>print()</code> differs from <code>puts()</code> in that <code>print()</code> will print out the actual <code>sequence</code> it is given. If it is given an <code>integer</code>, or an <code>atom</code> (Any number that is not an <code>integer</code>), it will print those out as-is.
 
=={{header|Factor}}==
14

edits