Loops/Downward for: Difference between revisions

Content added Content deleted
(Add C3)
Line 844: Line 844:
<syntaxhighlight lang="cpp">for(int i = 10; i >= 0; --i)
<syntaxhighlight lang="cpp">for(int i = 10; i >= 0; --i)
std::cout << i << "\n";</syntaxhighlight>
std::cout << i << "\n";</syntaxhighlight>

=={{header|C3}}==
<syntaxhighlight lang="c3">for (int i = 10; i >= 0; i--)
{
io::printn(i);
}</syntaxhighlight>


=={{header|Ceylon}}==
=={{header|Ceylon}}==