Do-While Loop
Let's see How to use Do while loop With Example:-
#include<iostream.h>
#include<conio.h>
void main()
{
int i;
do
cout<<"Anand Nayak"<<endl;
while(i<=5)
{
cout<<"Anand"<<endl;
i++;
}
getch();
}
#include<iostream.h>
#include<conio.h>
void main()
{
int i;
do
cout<<"Anand Nayak"<<endl;
while(i<=5)
{
cout<<"Anand"<<endl;
i++;
}
getch();
}
Post a Comment