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;
}
LATEST TUTORIALS
APPROVED BY CLIENTS