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

When would you use a pointer? A reference?

0 Answers   Amazon,


What is Coupling?

0 Answers   Cap Gemini,


Write a syntax and purpose of switch statement.

0 Answers   Agilent,


CDPATH shell variable is in(c-shell)

0 Answers   Siemens,


Explain the operator overloading feature in C++ ?

0 Answers  


Find the Factorial of a number using a program.

0 Answers   Accenture,


What Is A Default Constructor in C++ ?

0 Answers   Amazon,


When must you use a constructor initializer list?

0 Answers   Amazon,


What is the difference between Stack and Queue in C++?

0 Answers   Global Logic, iNautix,


Define type casting in C++.

0 Answers   Amdocs,


Tell us the size of a float variable.

0 Answers   Accenture,


When would you choose to return an error code rather than throw an exception?

0 Answers   Amazon,


Categories