#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int i,j,k;
for(i=5;i>=1;i--)
{
for(j=5-i;j>=0;j--)
cout<<" ";
for(k=1;k<=i;k++)
cout<<"* ";
cout<<endl;
}
getch();
}
#include<conio.h>
void main()
{
clrscr();
int i,j,k;
for(i=5;i>=1;i--)
{
for(j=5-i;j>=0;j--)
cout<<" ";
for(k=1;k<=i;k++)
cout<<"* ";
cout<<endl;
}
getch();
}
No comments:
Post a Comment