My Profile

Ahmednagar, Maharashtra, India
I, Das ShrikKrishna J. MCA III IMSCD&R, Ahmednagar.

Thursday, 28 July 2011

Program to draw & fill Rectangle

/* Program to draw & fill Rectangle */
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
int gd=DETECT,gm;
int x,y,r;
initgraph(&gd,&gm,"c:\\turboc3\\");
x=getmaxx()/2;
y=getmaxy()/2;
setcolor(5);
setbkcolor(3);
setfillstyle(1,5);
rectangle(x-50,y-50,x+50,y+50);
floodfill(x,y,5);
putpixel(x,y,YELLOW);
getch();
closegraph();
}

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls