Hello coders!
In this article today i am going to show how to Draw a Rectangle Using C Graphics Function .
Here for compiling this code i use Turbo C4 compiler .
// The Program is here -
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<graphics.h>
void main()
{
clrscr();
int driver,mode;
driver=DETECT; //Detect the graphics driver .
mode=0; / /Assign Mood to 0
initgraph(&driver,&mode,"c:\\tc\\bgi"); //Including the graphics file from local drive .
rectangle(150,90,34,300); // Drawing the rectangle .
getch();
}
Thank you so much for reading. If you like our work please share it .
In this article today i am going to show how to Draw a Rectangle Using C Graphics Function .
Here for compiling this code i use Turbo C4 compiler .
// The Program is here -
#include<stdio.h>
#include<conio.h>
#include<math.h>
#include<graphics.h>
void main()
{
clrscr();
int driver,mode;
driver=DETECT; //Detect the graphics driver .
mode=0; / /Assign Mood to 0
initgraph(&driver,&mode,"c:\\tc\\bgi"); //Including the graphics file from local drive .
rectangle(150,90,34,300); // Drawing the rectangle .
getch();
}
Thank you so much for reading. If you like our work please share it .
Drawing a Rectangle Using C Graphics Function
Reviewed by Admin
on
10:26 PM
Rating:
Reviewed by Admin
on
10:26 PM
Rating:

No comments: