C++ program to draw a square using the line function
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp -lgraph
kodingwindow@kw:~$ ./a.out
What Next?
C++ program to draw a square using the rectangle function
C++ program to draw a 3D square using the bar3d function
C++ program to draw a color-filled square using the bar function
Advertisement