Draw Resistance using Graphics
Write a C Program to Draw Resistance using Graphics. Here’s simple Program to Draw Resistance using Graphics in C Programming Language.
Below is the source code for C Program to Draw Resistance using Graphics which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
/* C Program to Draw Resistance using Graphics */ #include<stdio.h> #include<conio.h> #include<graphics.h> void main() { int gd = DETECT, gm; initgraph(&gd, &gm, "c:\\tc\\bgi"); line(90, 100, 100, 100); line(100, 100, 110, 120); line(110, 120, 120, 100); line(120, 100, 130, 120); line(130, 120, 140, 100); line(140, 100, 150, 120); line(150, 120, 160, 100); line(160, 100, 170, 100); outtextxy(100, 130, "Resisitor"); getch(); closegraph(); }
Above is the source code for C Program to Draw Resistances 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….