-
Here are some examples of for loops in different languages to look out for:
- Python:
for x in range(0, 9): # your code goes here - Java:
for (int x=0; x<10; x++) { // your code goes here } - C:
int x; for ( x=0; x<10; x++) { /* your code here */ }
for x in range(0, 9):
# your code goes herefor (int x=0; x<10; x++) {
// your code goes here
}int x;
for ( x=0; x<10; x++) {
/* your code here */
}