Loops/For with a specified step: Difference between revisions

→‎{{header|BASIC}}: Added C and C++
(added php, python3)
(→‎{{header|BASIC}}: Added C and C++)
Line 7:
next i
print "who do we appreciate?"</lang>
 
=={{header|C}}==
This prints all odd digits:
<lang c>
int i;
for(i = 1; i < 10; ++i)
printf("%d\n", i);
</lang>
 
=={{header|C++}}==
This prints all odd digits:
<lang cpp>
for (int i = 0; i < 10; ++i)
std::cout << i << std::endl;
</lang>
 
=={{header|Forth}}==
973

edits