Program to Draw rectangles in rectangle

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>

void main()
{
  clrscr();
  int gm=DETECT,gd,i;


   initgraph(&gm,&gd,"");


        rectangle(130,130,280,280);
  rectangle(100,100,300,300);


  getch();
}

Leave a Reply