sahajjain01

Print your name 10 times using while loop.

Aug 4th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. //Program to print your name 10 times using while loop.
  2. #include<iostream.h>
  3. #include<conio.h>
  4. void main()
  5. {
  6.     clrscr();
  7.     int a=1;
  8.     while(a<=10)
  9.     {  
  10.         a++;
  11.         cout<<"Sahaj"<<endl;
  12.     }
  13.     getch();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment