Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.
#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 |
Tell me about virtual function
What does it mean to declare a function or variable as static?
When must you use a constructor initializer list?
It is possible to build a C++ compiler on top of a C compiler. How would you do this?
How can a C function be called in a C++ program?
Do you know about Agilent PRECOMPILERS. ?
Write a program that ask for user input from 5 to 9 then calculate the average
Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.
What does it mean to declare a member function as virtual in C++?
Briefly explain various access specifiers in C++.
What are the advantages and disadvantages of B-star trees over Binary trees?
What is meant by exit controlled loop?