Loops/For with a specified step: Difference between revisions
Content added Content deleted
(typo) |
(add JavaScript) |
||
Line 172: | Line 172: | ||
} |
} |
||
System.out.println("who do we appreciate?");</lang> |
System.out.println("who do we appreciate?");</lang> |
||
=={{header|JavaScript}}== |
|||
<lang javascript>var output = ""; |
|||
for (var i = 2; i <= 8; i += 2) |
|||
output += i + ", "; |
|||
output += "who do we appreciate?"; |
|||
print(output);</lang> |
|||
=={{header|Lisaac}}== |
=={{header|Lisaac}}== |