C++ program to draw 'S' character using the arc function
codeaft.cpp
#include <graphics.h>
int main()
{
    int gd = 0, gm = 9;
    initgraph(&gd, &gm, NULL);
    arc(100, 100, 90, 360, 30);
    arc(100, 160, 270, 0, 30);
    delay(5000);
    return 0;
}
Output
codeaft@codeaft:~$ g++ codeaft.cpp -lgraph
codeaft@codeaft:~$ ./a.out
Comments and Reactions