Education for ALL
Pages
DL
MP
MC
COA
ES
NM
CG
OS
IP
DC
CN
CNS
Cryptography
C
C++
DSA
DBMS
SAD
SE
SPM
IoT
Blockchain
DS
AI
ML
C Program to Draw a Line in 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,200,200); //
Line(X1,Y1,X2,Y2);
getch();
closegraph();
}
OUTPUT:
C Program to Draw a Rectangle in Graphics >>
No comments:
Post a Comment
Newer Post
Older Post
Home
No comments:
Post a Comment