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 |
Write a program to read two numbers from the keyboard and display the larger value on the screen
What is the difference between virtual functions and pure virtual functions?
Write a program that ask for user input from 5 to 9 then calculate the average
what do you mean by exception handling in C++?
Tell us the size of a float variable.
What is the meaning of the following declaration: int *const *const *i?
explain the term 'resource acquisition is initialization'?
There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?
How will you print a list of all unique words from a string which may contain repeated words?
write a program To generate the Fibonacci Series.
What is Advantage and Use of THIS pointer in C++ – Scenarios?
Explain function prototypes in C++.