/* C program to draw a Rectangle */ #include<graphics.h> int main() { int gd = DETECT,gm; initgraph(&gd,&gm,"c:\\turboc3\\bgi"); /* Windows Turbo-C users */ //initgraph(&gd,&gm,NULL); /* LINUX users */ outtextxy(100,30,"Rectangle"); rectangle(150,250,450,350); delay(5000); closegraph(); return 0; }
Output |
No comments:
Post a Comment