please help me write a program using turbo c to draw a rectangle inside a circle......... .
how to draw a rectangle inside a circle using c program?
Collapse
X
-
Tags: None
-
-
Code:#include<stdio.h> #include<conio.h> #include<graphics.h> void main() { int gd=DETECT,gm; clrscr(); initgraph(&gd,&gm,""); circle(100,200,100); // 100,200 is a center point of the circle,so u less the rectangle value from this axis rectangle(x1,y1,x2,y2); closegraph(); getch(); }Comment
Comment