#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
int x,y;
for(int x=5; x>=0;
x--)
{
for(int z=5;
z>x; z--)
{
cout<<" ";
}
for(int z=1; z<=x;
z++)
{
cout<<"*";
}
cout<<endl<<endl;
}
getche();
}
Output:

0 comments:
Post a Comment