Answers for "how to use for c++"

C++
0

how to use for c++

#include <iostream>
using namespace std;
int main(){
   for(int i=1; i<=6; i++){
      /* This statement would be executed
       * repeatedly until the condition
       * i<=6 returns false.
       */
      cout<<"Value of variable i is: "<<i<<endl;
   }
   return 0;
}
Posted by: Guest on August-22-2021

Browse Popular Code Answers by Language