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 is the difference between creating an object, using 'new' and using 'malloc'?

3 Answers   HFG, Siemens,


What is a constructor initializer list?

0 Answers   Amazon,


Difference between function overloading and function overriding.

0 Answers   Alter,


CDPATH shell variable is in(c-shell)

0 Answers   Siemens,


Write a C++ Program to Find Sum and Average of three numbers.

1 Answers  


Write a program to display the following output using a single cout statement Maths=90 Physics=77 Chemistry = 69

2 Answers  


Explain what happens when an exception is thrown in C++.

0 Answers   Amazon,


Tell us the size of a float variable.

0 Answers   Accenture,


What is placement new?

1 Answers   Amazon,


Define namespace.

1 Answers  


How will you print a list of all unique words from a string which may contain repeated words?

0 Answers   Adobe,


What is Boyce Codd Normal form?

0 Answers   IBS,


Categories