NALLAMUTHU GOUNDER MAHALINGAM COLLEGE
POLLACHI-642001
N.DHIVYA
BSC COMPUTER SCIENCE(1st year)
13.Do While
#include <iostream>
int main()
{
int i=0;
do
{
std::cout<<i<<"\n";
i++;
}
while(i<=30);
{
std::cout<<"stop"<<std::endl;
}
do
{
std::cout<<i<<"\n";
i++;
}
while(i<=40);
{
std::cout<<"ready"<<std::endl;
}
do
{
std::cout<<i<<"\n";
i++ ;
}
while(i<=70);
{
std::cout<<"go"<<std::endl;
}
return 0;
}
OUTPUT: