C++ program to draw a circle using the circle function
codeaft.cpp
#include <graphics.h>
int main()
{
    int gd = 0, gm = 9;
    initgraph(&gd, &gm, NULL);
    setcolor(15);
    circle(120, 100, 75);
    delay(5000);
    return 0;
}
Output
codeaft@codeaft:~$ g++ codeaft.cpp -lgraph
codeaft@codeaft:~$ ./a.out
Comments and Reactions