Below is the source code for C Program to Draw Capacitor using Graphics which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
/* C Program to Draw Capacitors using Graphics */
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main() {
int gd = DETECT, gm;
initgraph(&gd, &gm, "c:\\tc\\bgi");
outtextxy(110, 60, "C");
line(80, 100, 100, 100);
line(100, 80, 100, 120);
line(120, 80, 120, 120);
line(120, 100, 140, 100);
getch();
closegraph();
}
Above is the source code for C Program to Draw Capacitors using Graphics which is successfully compiled and run on Windows System.The Output of the program is shown above .
Below is the source code for C Program to Draw Capacitor using Graphics which is successfully compiled and run on Windows System to produce desired output as shown below :
SOURCE CODE : :
Above is the source code for C Program to Draw Capacitors using Graphics which is successfully compiled and run on Windows System.The Output of the program is shown above .
need an explanation for this answer? contact us directly to get an explanation for this answer