Answer to Question #31367 in C++ for apoorva

Question #31367
write a program to display the following o/p:
1) * (1 star)
*** (3 stars)
***** (5 stars)
*** (3 stars)
* (1 star)
1
Expert's answer
2013-06-03T08:38:08-0400
#include <iostream>

using namespace std;

int main()
{
cout << "Hello world!" << endl;



cout << " * (1 star)" << endl;
cout << " *** (3 star)" << endl;
& cout << "& ***** & (5 star)" << endl;
cout << " *** (3 star)" << endl;
cout << " * (1 star)" << endl;

return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS