Write a C Program to Draw Eclipse using Graphics

By | 02.12.2016

Draw Eclipse using Graphics


Write a C Program to Draw Eclipse using Graphics. Here’s simple Program to Draw Eclipse using Graphics in C Programming Language.


Below is the source code for C Program to Draw Eclipse using Graphics which is successfully compiled and run on Windows System to produce desired output as shown below :


SOURCE CODE : :


/*  C Program to Draw Eclipses using Graphics  */

#include<graphics.h>
#include<conio.h>

main() {
        int gd = DETECT, gm;

        initgraph(&gd, &gm, "C:\\TC\\BGI");

        ellipse(100, 100, 0, 360, 50, 25);

        getch();
        closegraph();
        
        return 0;
}

Above is the source code for C Program to Draw Eclipses using Graphics which is successfully compiled and run on Windows System.The Output of the program is shown above .

If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach up to you in short interval.


Thanks for reading the post….

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments