Noor-Snovar
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
June 11, 2016 at 4:11 PM
Unknown
said...
1
September 27, 2021 at 7:19 PM
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
2 comments:
the loop will run for n+1 times as the loop is started from i=0
1
Post a Comment