Thursday, April 9, 2009

write a program to input an integer value from keyboard and display on the screen "WELL DONE" that many times.

#include< conio.h>
#include< iostream.h>
void main()
{
int n,i;
clrscr();
cout<< "Enter a Number:- ";
cin>> n;
cout<< "\n\n\n";
for(i=0;i< n;i++)
{
cout<< "\t\tWELL DONE\n";
}
getch();
}

2 comments:

Anonymous said...

the loop will run for n+1 times as the loop is started from i=0

Unknown said...

1