#include<iostream.h>
void main()
{
char x,y,spasi,a,b;
for (x='a';x<='e';x++)
{
for (spasi='e';spasi>=x;spasi--)
cout<<' ';
for (y='a';y<=x;y++)
{
cout<<'*';
}
cout<<endl;
}
for (a='d';a>='a';a--)
{ cout<<' ';
for (spasi='d';spasi>=a;spasi--)
cout<<' ';
for (b='a';b<=a;b++)
{
cout<<'*';
}
cout<<endl;
}
}
Dengan Output :
0 komentar:
Posting Komentar