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

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

1 Answers  


What is the difference between virtual functions and pure virtual functions?

1 Answers  


Write a program that ask for user input from 5 to 9 then calculate the average

0 Answers   IBS,


what do you mean by exception handling in C++?

0 Answers   Alter,


Tell us the size of a float variable.

0 Answers   Accenture,


What is the meaning of the following declaration: int *const *const *i?

0 Answers   Adobe,


explain the term 'resource acquisition is initialization'?

0 Answers   Amazon,


There is a base class sub, with a member function fnsub(). There are two classes super1 and super2 which are sub classes of the base class sub.if and pointer object is created of the class sub which points to any of the two classes super1 and super2, if fnsub() is called which one will be inoked?

0 Answers   Alter,


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

0 Answers   Adobe,


write a program To generate the Fibonacci Series.

0 Answers   Accenture,


What is Advantage and Use of THIS pointer in C++ – Scenarios?

0 Answers  


Explain function prototypes in C++.

0 Answers   Aricent,


Categories