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.

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


Please Help Members By Posting Answers For Below Questions

What is the difference between #import and #include in c++?

1057


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

997


How do you traverse a btree in backward in-order?

978


What does it mean to declare a member function as static?

1013


What is a wchar_t in c++?

1059


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1023


What is the full form of dos?

1048


How do I start a c++ project?

1002


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

1950


You want to link a c++ program to c functions. How would you do it?

926


Explain the difference between new() and malloc() in c++?

1069


What is the insertion operator and what does it do?

986


What c++ is used for?

1011


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1014


Which field is used in c++?

1047