Ads Top

WHILE LOOP PRINTING 0 TO 10 USING C

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

}

OUTPUT:
0
1
2
3
4
5
6
7
8
9
10

No comments:

Touchfeeds. Powered by Blogger.