While Loop
Lets How to use while loop with Example:-
#include<iostream.h>
#include<conio.h>
void main()
{
int i
while(i<=5)
{
cout<<i<<emdl;
i++;
}
getch();
}
#include<iostream.h>
#include<conio.h>
void main()
{
int i
while(i<=5)
{
cout<<i<<emdl;
i++;
}
getch();
}
Post a Comment