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 endl c++?
Define linked lists with the help of an example.
what is different between oops and c++
What c++ is used for?
what is VOID?
What is class and object with example?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
How many types of scopes are there in c++?
How do I run c++?
What are manipulators used for?
What are the various situations where a copy constructor is invoked?
What kind of jobs can I get with c++?
What is function overloading and operator overloading in C++?
State the difference between delete and delete[].
Is overriding possible in c++?