What programming language are you using?
Java, JavaScript, C++, php... ?
All of these languages are similar. Here is a for-loop in Java.
for (int i = 0; i %26lt; n; i++) {
Sytem.out.println("i = " + i);
}
In the above code, the variable named "i" is set to zero for the first iteration and is incremented by one each time that the loop is executed.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment