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 c++ w3school?

1112


What is the difference between the indirection operator and the address of oper-ator?

1120


How would you obtain segment and offset addresses from a far address of a memory location?

1087


Tell us the size of a float variable.

1055


What do you mean by function overriding & function overloading in c++?

1194


Write is a binary search tree? Write an algo and tell complexity?

1026


How do you flush a buffer in c++?

1102


Search for: what is pair in c++?

1122


Define stl.

1272


Why we use classes in oop?

1046


Why is oop better than procedural?

1085


What is vector string in c++?

1092


What is namespace std; and what is consists of?

1305


Can we run c program in turbo c++?

1084


What is binary object model?

1035