Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.
Answer Posted / hr
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
int n;
char *str;
str="WELL DONE";
cout<<" Enter an integer value ";
cin>>n;
for(int i=0;i<n;i++)
{
cout<<str<<endl;
}
return 0;
}
OUTPUT:
Enter an integer value 5
WELL DONE
WELL DONE
WELL DONE
WELL DONE
WELL DONE
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is c++ w3school?
What is the difference between the indirection operator and the address of oper-ator?
How would you obtain segment and offset addresses from a far address of a memory location?
Tell us the size of a float variable.
What do you mean by function overriding & function overloading in c++?
Write is a binary search tree? Write an algo and tell complexity?
How do you flush a buffer in c++?
Search for: what is pair in c++?
Define stl.
Why we use classes in oop?
Why is oop better than procedural?
What is vector string in c++?
What is namespace std; and what is consists of?
Can we run c program in turbo c++?
What is binary object model?