Question #14060

how to output *****
****
***
**
*

Expert's answer

#include <iostream>
using namespace std;


void
main()
{
cout<<"*****"<<endl;

cout<<"****"<<endl;
cout<<"***"<<endl;

cout<<"**"<<endl;
cout<<"*"<<endl;
}
LATEST TUTORIALS
APPROVED BY CLIENTS