Q:

Write a C Program to Draw PNP Transistor using Graphics

0

Write a C Program to Draw PNP Transistor using Graphics. Here’s simple Program to Draw PNP Transistor using Graphics in C Programming Language.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Below is the source code for C Program to Draw PNP Transistor using Graphics which is successfully compiled and run on Windows System to produce desired output as shown below :

 
 


SOURCE CODE : :

/*  C Program to Draw PNP Transistors using Graphics  */

#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();
}

Above is the source code for C Program to Draw PNP Transistors 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

total answers (1)

C Graphic Solved Programs – C Programming

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Write a C Program to Draw Eclipse using Graphics... >>
<< Write a C Program to Draw Resistance using Graphic...