C Program to Draw PNP Transistor using Graphics Function

January 20, 2025 No Comments » Hits : 170





C Program to Draw PNP 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(100,175,110,200);
line(100,175,125,175);
outtextxy(200,150,"PNP Transistor");
getch();
closegraph();
}

Incoming search terms: