Loops/For with a specified step: Difference between revisions

added c#
(Added Oz example.)
(added c#)
Line 83:
<lang cpp>for (int i = 1; i < 10; i += 2)
std::cout << i << std::endl;</lang>
 
=={{header|C sharp|C#}}==
 
<lang csharp>using System;
class Program {
static void Main(string[] args)
{
for (int i = 2; i <= 8; i+= 2)
{
Console.Write("{0}, ", i);
}
Console.Write("who do we appreciate?");
}
}</lang>
 
=={{header|Common Lisp}}==
Anonymous user