C Program to Draw NPN Transistor using Graphics Function

January 20, 2025 No Comments » Hits : 16






C Program to Draw NPN Transistor using Graphics Function


#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"c:\\tc\\bgi");
line(100,100,100,200);
line(70,150,100,150);
line(100,125,150,90);
line(100,175,150,210);
line(140,190,150,210);
line(130,210,150,210);
outtextxy(100,250,"NPN Transistor");
getch();
closegraph();
}

Leave A Response