Write a C program to Rotate a 2D primitive (or object) using C in Computer Graphics according to user choice.
Program: 62
Write a C program to rotate a 2D primitive, if degree of rotation is input through the keyboard.
Output
Enter the value of X1 and Y1: 100 100 Enter the value of X2 and Y2: 200 100 Enter the degree of rotation: 90