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

How does free know the size of memory to be deleted

0 Answers  


What do you by Function Overloading in C++?

0 Answers   Akamai Technologies, Infogain,


What is a constructor initializer list?

0 Answers   Amazon,


What are string library functions(syntax).

0 Answers   Accenture,


Write a program to read two numbers from the keyboard and display the larger value on the screen

1 Answers  


What is an algorithm (in terms of the STL/C++ standard library)?

0 Answers   Amazon,


If class D is derived from a base class B

0 Answers  


What's the value of the expression 5["abxdef"]?

0 Answers  


How to generate random numbers in C++ with a range?

0 Answers  


Explain about Searching and sorting algorithms with complexities

0 Answers   Accenture,


What does it mean to declare a function or variable as static?

0 Answers   Amazon,


Explain the difference between C and C++.

1 Answers   Accenture,


Categories