Wap in cpp for first 10 natural number using while loop

#include<iostream.h>
#include<conio.h>
void main()
{
int a;
clrscr();
a=1;
while(a<=10)
{cout<<a<<endl;
a++;}

getch():
}

No comments:

Post a Comment

If You Like The Post Or want to Add Something More
then feel free to comment