#include <iostream.h>
#include <conio.h>
void main ()
{
int x,y,z;
for (x=5;x>=1;x--)
{for (z=x;z<=5;z++)
{cout<<" ";}
for (y=x;y>=1;y--)
{cout<<"*";}
cout<<endl;
}
getch ();
}
#include<iostream.h>
#include<conio.h>
main()
{
int a,b;
for (a=5;a>=0;a--)
{
for(b=a;b>=0;b--)
{
cout<<"*";
}
cout<<endl;
}
getch();
}
Semoga Bermanfaat.

