C++ Code
Do While Loop
#include <iostream>
#include<string>
int main ()
using namespace std;
int x=1;
do
{
cout <<"This is a do while loop"<< endl;
x = x+1;
}
while (x<=10)
system ("pause");
return 0;
}
Do While Loop:
Go to C++ Code Home
Do While Loop
#include <iostream>
#include<string>
int main ()
using namespace std;
int x=1;
do
{
cout <<"This is a do while loop"<< endl;
x = x+1;
}
while (x<=10)
system ("pause");
return 0;
}
Do While Loop:
Go to C++ Code Home