Write a C program which takes points as input from mouse clicks (left button) and then performs an action. Apply your program to generate a closed polygon as follows: Every time a left button is pressed, a point on the screen is selected at mouse position and corresponding edge is drawn. When the right button is clicked, the polygon is created. Use one of the line drawing algorithms to plot your line segment.