CG LAB

PROGRAM 1 PROGRAM 2 PROGRAM 3 PROGRAM 4 PROGRAM 5 PROGRAM 6 PROGRAM 7 PROGRAM 8 PROGRAM 9 PROGRAM 10 PROGRAM 11 PROGRAM 12 . . .

Write a program to draw borders at the four corners of the screen.

 

 #include < stdio.h >
#include< graphics.h >
#include< conio.h >
 
int main(){
   int gd = DETECT,gm;
   initgraph(&gd, &gm, "C:\\TC\\BGI");
 
   /* Draw rectangle on screen */
   //rectangle(150, 50, 400, 150);
  
       rectangle(0,0,getmaxx(),getmaxy());


   /* Draw Bar on screen */
   //bar(150, 200, 400, 350);
 
   getch();
   closegraph();
   return 0;
}