Listing Program :
# include
void main()
{
for (int x=1;x<=5;x++)
{
for (int z=5-x;z>= 1;z--)
cout<<" ";
for (int y=1;y<=x;y++)
cout<<"* ";
cout<
}
for (int a=4;a>=1;a--)
{
for (int b=4-a;b>= 1;b--)
cout<<" ";
for (int c=1;c<=a;c++)
cout<<" "<<"*";
cout<
}}
void main()
{
for (int x=1;x<=5;x++)
{
for (int z=5-x;z>= 1;z--)
cout<<" ";
for (int y=1;y<=x;y++)
cout<<"* ";
cout<
}
for (int a=4;a>=1;a--)
{
for (int b=4-a;b>= 1;b--)
cout<<" ";
for (int c=1;c<=a;c++)
cout<<" "<<"*";
cout<
}}
Print Out :
Silahkan Berkomentar Pada Form Komentar dengan sopan dan santun .. No Spam .... !!! thank's @Admin
EmoticonEmoticon