C++ program to draw 'S' character using the arc function
kw.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
kodingwindow@kw:~$ g++ kw.cpp -lgraph
kodingwindow@kw:~$ ./a.out
Advertisement