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
1for (statement 1; statement 2; statement 3) {
2 // code block to be executed
3}
4//Statement 1 is executed (one time) before the execution of the code block.
5
6//Statement 2 defines the condition for executing the code block.
7
8//Statement 3 is executed (every time) after the code block has been executed.
9
10//The example below will print the numbers 0 to 4:
11
12Example
13for (int i = 0; i < 5; i++) {
14 cout << i << "\n";
15}
1#include <iostream>
2#define FOR(i,a) for (int i = 0; i < a; i++)
3
4FOR(i, 3) cout << i << endl;
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
12
13
14
15loop c++C++ By Zearz on Feb 25 2020
16for (int i = 0; i < 5; i++) {
17 cout << i << "\n";
18}