Answer to Question #31367 in C++ for apoorva
write a program to display the following o/p:
1) * (1 star)
*** (3 stars)
***** (5 stars)
*** (3 stars)
* (1 star)
1
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!
Learn more about our help with Assignments:
C++
Comments
Leave a comment