#include
#include
main()
{
int n,a,b;
cout<<"\nPOLA SEGITIGA BINTANG dengan n = ";
cin>>n;
for(a=0;a<=n;a++)
{
for(b=0;b<=a;b++)
{
cout<<"*";
}
cout<
}
{
for(b=a;b>=0;b--)
{
cout<<"*";
}
cout<
}
getch();
}
No comments:
Post a Comment