1//'i' can be any number
2//Can be any comparison operater
3//can be any number compared
4//can be any mathmatic operater
5
6for (int i = 0; i<100; i++){
7//Do thing
8}
9
10//more info on operaters
11//https://www.w3schools.com/cpp/cpp_operators.asp
1#include <iostream>
2using namespace std;
3
4int main()
5{
6 for (int i = 0; i < 20; i++)
7 {
8 cout << i << endl;
9 }
10 //prints the number (i)
11}
1for ( int i = 0; i < 5; i++)
2{
3 cout << "Hello" << endl;
4}
5// prints hello 5 times.
1for (int i = start; i < stop; i = i + step){
2 // statement 1
3 // statement 2
4 // etc
5}