Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.



Write a program to input an integer from the keyboard and display on the screen “WELL DONE&rdq..

Answer / 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

More C++ Interview Questions

What do you know about Volatile keyword in C++? Explain with an example code.

0 Answers   Adobe,


Name the operators that cannot be overloaded.

1 Answers   Wipro,


Define type casting in C++.

0 Answers   Amdocs,


What is Copy Constructor?

5 Answers   ABC, Siemens,


When would you use a pointer? A reference?

0 Answers   Amazon,


Do you know about Agilent PRECOMPILERS. ?

0 Answers   Agilent,


How to invoke a C function using a C++ program?

0 Answers   Alter,


Discuss about iteration statements in C++ .

0 Answers   Agilent,


How does free know the size of memory to be deleted

0 Answers  


What are pass by value and pass by reference?what is the disadvantage of pass by value?

0 Answers   Alter,


What is the difference between virtual functions and pure virtual functions?

1 Answers  


How does stack look in function calls? When does stack overflow? What can you do to remedy it?

0 Answers   Adobe,


Categories