C program to draw the symbol of diode using graphics
#include<stdio.h> #include<conio.h> #include<graphics.h> void main() { int gd, gm; gd=DETECT; initgraph(&gd, &gm, "C:\\TC\\BGI"); printf("C Program to Draw the symbol of diode using Graphics\n"); line(200, 200, 200, 400); line(140, 300, 200, 300); line(200, 200, 300, 300); line(200, 400, 300, 300); line(300, 200, 300, 400); line(300, 300, 500, 300); getch(); closegraph(); }
Output: