Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  animate
Language: C/C++
Code:
     #include<iostream>
using namespace std;
int main()
{int i,j,width=10,height=10,a=1;
while(1)
{for(i=1;i<9;i++)
{for(j=1;j<a;j++)
cout<<" * ";
a++;
cout<<endl;}
for(i=1;i<9;i++)
{for(j=1;j<9;j++)
cout<<" * ";
cout<<endl;}
for(i=1;i<width;i++)
{for(j=1;j<height;j++)
cout<<" * ";
height++;
cout<<endl;}
for(i=1;i<width;i++)
{for(j=3;j<height;j++)
cout<<" * ";
height--;
cout<<endl;}
for(i=1;i<9;i++)
{for(j=1;j<9;j++)
cout<<" * ";
cout<<endl;}
for(i=1;i<9;i++)
{for(j=1;j<a;j++)
cout<<" * ";
a--;
cout<<endl;}}
cin.get();
return 0;}
          
Comments: