Loops/For with a specified step: Difference between revisions
Content added Content deleted
(Added what I think Vorpal should be) |
Underscore (talk | contribs) (Added Perl 6.) |
||
Line 245: | Line 245: | ||
} |
} |
||
print "who do we appreciate?\n";</lang> |
print "who do we appreciate?\n";</lang> |
||
=={{header|Perl 6}}== |
|||
{{works with|Rakudo|commit 24ebf398b8139e7dbb69786ced40d638d433ff9a}} |
|||
<lang perl6>for 2 ... * + 2, 8 { |
|||
print "$_, "; |
|||
} |
|||
say 'whom do we appreciate?';</lang><!-- "Whom" is infinitely more amusing. --> |
|||
=={{header|PHP}}== |
=={{header|PHP}}== |