C++ program to draw a quarter color-filled circle using the pieslice function
gd.cpp
#include <graphics.h>
int main()
{
    int gd = 0, gm = 9;
    initgraph(&gd, &gm, NULL);
    pieslice(60, 60, 0, 90, 50);
    delay(2000);
    return 0;
}
Output
godarda@gd:~$ g++ gd.cpp -lgraph
godarda@gd:~$ ./a.out
Comments and Reactions