how to use for c 2b 2b

Solutions on MaxInterview for how to use for c 2b 2b by the best coders in the world

showing results for - "how to use for c 2b 2b"
Eric
11 Mar 2018
1#include <iostream>
2using namespace std;
3int main(){
4   for(int i=1; i<=6; i++){
5      /* This statement would be executed
6       * repeatedly until the condition
7       * i<=6 returns false.
8       */
9      cout<<"Value of variable i is: "<<i<<endl;
10   }
11   return 0;
12}