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)
Expert's answer
#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
paypal