My photo
Bangalore, Karnataka, India
Extending one hand to help someone has more value rather than joining two hands for prayer

Archives

program of moving boundries

Tuesday, September 1, 2009

#include<conio.h>
#include<iostream.h>
void delay();
void bound1();
void bound2();
void bound3();
void bound4();
void bound5();
void line();
void main()
{ clrscr();
  for(int i=0;i<20;i++)
  {   bound1();
      delay();
      clrscr();
      bound2();
      delay();
      clrscr();
      bound3();
      delay();
      clrscr();
      bound4();
      delay();
      clrscr();
      bound5();
      delay();
      clrscr();
   }
 }
void bound1()
{   for(int i=0;i<9;i++)
    {    line();
     cout<<endl<<endl<<endl<<endl<<endl;
    }
    line();
}
void bound2()
{    cout<<endl;
     for(int i=0;i<9;i++)
     {   line();
     cout<<endl<<endl<<endl<<endl<<endl;
     }
     line();
}
void bound3()
{    cout<<endl<<endl;
     for(int i=0;i<9;i++)
     {  line();
    cout<<endl<<endl<<endl<<endl<<endl;
     }
     line();
}
void bound4()
{    cout<<endl<<endl<<endl;
     for(int i=0;i<9;i++)
     {  line();
    cout<<endl<<endl<<endl<<endl<<endl;
     }
     line();
}
void bound5()
{    cout<<endl<<endl<<endl<<endl;
     for(int i=0;i<9;i++)
     {  line();
    cout<<endl<<endl<<endl<<endl<<endl;
     }
     line();
}
void line()
{   for(int i=0;i<24;i++)
    cout<<"*";
    for(i=0;i<30;i++)
    cout<<" ";
    for(i=0;i<25;i++)
    cout<<"*";
}
void delay()
{   for(double j=0;j<7000000;j++)
    {}
}

0 comments: