Wednesday, 11 February 2015

u1p2

Program which get a integer number and display "WELL DONE" that many times.


 #include<iostream.h>  
 #include<conio.h>  
 void main()  
 {  
  clrscr();  
  int D;  
  cout<<"Enter Number of loops : \n";  
  cin>>D;  
  for(int N=1;N<=D;N++)  
  {  
      cout<<"\n"<<N<<".\tWELL DONE";  
  }  
  getch();  
 }  

OUTPUT :


No comments:

Post a Comment