Draw a picture using line - c program, C/C++ Programming

Draw a picture using line:

void main(void)


    int   driver = DETECT,mode;

    int   x[10],y[10];

    int   x_center = 360, y_center = 180, rad = 100;

    int   i,j;



    for ( i = 0; i < 10; i++ )


       x[i] =  x_center + rad *  cos(36*i*3.14159/180);

       y[i] =  y_center + rad *  sin(36*i*3.14159/180);


    for ( i = 0; i < 10; i++ )

       for ( j = 0; j < 10; j++ )


    getch();           /* press any key return to TEXT mode */



Posted Date: 10/18/2012 6:34:16 AM | Location : United States

Related Discussions:- Draw a picture using line - c program, Assignment Help, Ask Question on Draw a picture using line - c program, Get Answer, Expert's Help, Draw a picture using line - c program Discussions

Write discussion on Draw a picture using line - c program
Your posts are moderated
Related Questions
Q: How the compiler arranges the several sections in the executable image? A: The executable contained following sections: 1.      Data Section (initialized data variable sec

I hv an assignment to do, I almost done. But i cant find whats wrong- my code is to make a simple calculator using function''s all 4 patterns. I did like this- #include int add

Write a program that finds the minimum total number of shelv, C/C++ Programming

Is there any difference between List x; and List x ()? Can you please provide me assignment help.

Ask question #write statement that assign random integer to the varaible n in the (100

find the greater of the two variables, without using conditional loops or ternary operators?

By pressing ‘6’ (i.e. key’6’ one time) on the keypad, the mobile shows ‘m’ on display screen in write text message area

Explain about the Integer constants in c language? An integer constant is the integer valued number and it refers to a sequence of digits. A decimal integer constant includes o

F u nction Returning Object: This program is like to the previous program except the function returns object.  The main rule to be remembered is the function returning obj