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>
2#include <stdlib.h>
3
4/*====================================
5* eXcript.com
6* fb.com/eXcript
7* ====================================*/
8
9using namespace std;
10
11int main() {
12 for(int i = 0; i <= 10; i++){
13 cout << "O valor de i eh igual: " << i << endl;
14 }
15
16 system("pause");
17 return 0;
18}
19
1#include <iostream>
2#include <string>
3using namespace std;
4
5int main()
6 {
7 cout<<"Printing 2's multiples less than 20"<<endl;
8 for(int i =2;i<=20;i +=2)
9 {cout<<"i = "<<i<<"\t";
10 }
11 }
12