In this program, you'll learn to inverted half star pyramid.
#include <iostream>
using namespace std;
int main()
{
int i,j;
//;
for (i=4; i>=0; i--)
{
for (j=0; j<=i; j++)
{
cout<<"* ";
}
cout<<"\n";
}
return 0;
}
* * * * *
* * * *
* * *
* *
*