C++ menu-driven program to draw the convex polygons
kw.cpp
Output
kodingwindow@kw:~$ g++ kw.cpp -lgraph kodingwindow@kw:~$ ./a.out
———————————————————————————————————————————
Program to draw the convex polygons
———————————————————————————————————————————
1.Square
2.Rectangle
3.Triangle
4.Exit
———————————————————————————————————————————
Enter your choice 1
Enter the x1 coordinate 30
Enter the y1 coordinate 30
Enter the x2 coordinate 150
Enter the y2 coordinate 150
———————————————————————————————————————————
Program to draw the convex polygons
———————————————————————————————————————————
1.Square
2.Rectangle
3.Triangle
4.Exit
———————————————————————————————————————————
Enter your choice 2
Enter the x1 coordinate 30
Enter the y1 coordinate 30
Enter the x2 coordinate 150
Enter the y2 coordinate 100
———————————————————————————————————————————
Program to draw the convex polygons
———————————————————————————————————————————
1.Square
2.Rectangle
3.Triangle
4.Exit
———————————————————————————————————————————
Enter your choice 3
Enter the x1 coordinate 100
Enter the y1 coordinate 20
Enter the x2 coordinate 20
Enter the y2 coordinate 100
Enter the x3 coordinate 180
Enter the y3 coordinate 100
Dear User, Thank you for visitng Kodingwindow. If you are interested in technical articles, latest technologies, and our journey further, please follow us on LinkedIn.
Dear User, We are grateful for your interest in the Kodingwindow Android app. We intend to soon make it available on the Google Play Store. Currently, Android versions 10 and up require manual apk installations. Would you like to get the app?