Warning: mysqli_connect(): (HY000/2002): Connection refused in /home/programc/public_html/wp-content/plugins/wp-pro-quiz/wp-pro-quiz.php on line 38

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /home/programc/public_html/wp-content/plugins/wp-pro-quiz/wp-pro-quiz.php on line 40

Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in /home/programc/public_html/wp-content/plugins/wp-pro-quiz/wp-pro-quiz.php on line 41

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /home/programc/public_html/wp-content/plugins/wp-pro-quiz/wp-pro-quiz.php on line 45

Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /home/programc/public_html/wp-content/plugins/wp-pro-quiz/wp-pro-quiz.php on line 48

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/programc/public_html/wp-content/plugins/wp-pro-quiz/wp-pro-quiz.php on line 49
Program for a Moving Kite - Get Program Code
Home / Animation / Program for a Moving Kite

Program for a Moving Kite

#include
#include
#include
void main()
{
int i;
int gd=DETECT,gm;
initgraph(&gd,&gm,”C:\\TC\\bgi”);
line(250,200,200,250);
line(200,250,250,300);
line(250,300,300,250);
line(300,250,250,200);
line(250,300,225,325);
line(225,325,275,325);
line(275,325,250,300);
i=0;
while(i<200)
                {
                cleardevice();
                line(250-i,200-i,200-i,250-i);        
                line(200-i,250-i,250-i,300-i);
                line(250-i,300-i,300-i,250-i);
                line(300-i,250-i,250-i,200-i);
                line(250-i,300-i,225-i,325-i);
                line(225-i,325-i,275-i,325-i);
                line(275-i,325-i,250-i,300-i);
                i+=5;
                delay(100);
                }
getch();
closegraph();
}

OUTPUT: 

Tags: C program for moving kite, c graphics program for moving kite.

Check Also

Restrict Mouse Pointer Position C Graphics Program

This C Program will restrict the Mouse Pointer location or to a particular position or x,y ...

Leave a Reply

Your email address will not be published. Required fields are marked *

Preventing spam * Time limit is exhausted. Please reload the CAPTCHA.