Write a C Program to draw Inductive Coil using Graphics

By | 02.12.2016

Draw Inductive Coil using Graphics


Write a C Program to draw Inductive Coil using Graphics. Here’s simple Program to draw Inductive Coil using Graphics in C Programming Language.


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


SOURCE CODE : :


/*  C Program to draw Inductive Coils using Graphics  */

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

void main() {

   int gd = DETECT, gm;
   initgraph(&gd, &gm, "c:\\tc\\bgi");

   line(100, 200, 150, 200);

   arc(200, 200, 0, 180, 50);
   arc(260, 200, 0, 180, 50);
   arc(230, 200, 180, 360, 20);

   arc(320, 200, 0, 180, 50);
   arc(290, 200, 180, 360, 20);

   arc(380, 200, 0, 180, 50);
   arc(350, 200, 180, 360, 20);

   line(430, 200, 470, 200);

   getch();
   closegraph();
}

Above is the source code for C Program to draw Inductive Coil 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
Category: C Programming Graphic Programs Tags:

About Tunde A

My name is Tunde Ajetomobi, a Tech Enthusiast and Growth Hacker. I enjoy creating helpful content that solves problem across different topics. Codezclub is my way of helping young aspiring programmers and students to hone their skills and find solutions on fundamental programming languages.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments