#include <iostream>
using namespace std;
int main()
{
for (int i = 0; i < 20; i++)
{
cout << i << endl;
}
//prints the number (i)
}
for (let i=0; i<10; i++) {
console.log("hello") }
for (int i = startPoint; i<index ; i++ // or i--){
//Do something...
}
for ( int i = 0; i < 5; i++)
{
cout << "Hello" << endl;
}
// prints hello 5 times.
for (int i = start; i < stop; i = i + step){
// statement 1
// statement 2
// etc
}
for (<exp_1>; <exp_2>; <exp_3>){
// loop body
}
for(int i=0;i< /*condition*/ ;i++)
{
//your code here
}
for (int i=0; i<10; ++i);
for (/* init var */;/* break condition */;/* mathmatic operation */) {
// do something
}
int i;
for ( i=0; i<100; i++)
{
Excuted Code .....
}
for(initialization; condition ; increment/decrement) {
statement(s);
}
int i;
for (i=0; i<10; i++) {
cout << i << endl;
}
// lets use for loop
for(int i=0;i<10;i++)
{
cout<<"hallo world";
}
for (int i = 0; i < some_int; ++i){
//do something here in loop - loop will run some_int - 1 times
}
for ( initialization;condition;increment ) {
statement(s);
}
for (int i = 0; i < 7; i++)
{
cout << i << endl;
}
for loop