Write a program to draw a rectangle with circles inside it.
Answers
Hello, here is your answer
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C://TURBOC3//bgi");
int x = 250;
int y = 250;
int radius=100;
// setting border color
int border_color = WHITE;
// set color and pattern
setfillstyle(HATCH_FILL,RED);
// x and y is a position and radius is for radius of circle
circle(x,y,radius);
// fill the color at location (x, y) with in border color
floodfill(x,y,border_color);
getch();
// closegraph function closes the graphics mode and deallocates all memory allocated by graphics system
closegraph();
}
Answer:
paint is a program used in laptop or computer to make shapes n draw it....as your question in ms paint you can make circles inside a rectangle....if it was helpful mark me brainlist n be my follower