Pages

Wednesday, 21 February 2018

Do While Loop Example in C++ Programming Language

Do While Loop Example in C++ Programming Language  

#include <iostream>
using namespace std;
int main(){
   int num=1;
   do{
      cout<<"Value of num: "<<num<<endl;
      num++;
   }while(num<=6);
   return 0;

}