Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Program to print first 10 natural numbers using while loop.
- #include<iostream.h>
- #include<conio.h>
- void main()
- {
- clrscr();
- int a=0;
- while(a<10)
- {
- ++a;
- cout<<a<<endl;
- }
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment