Solution 1
int x1, y1, x2, y2; // variable declare
cout <<
"\n Enter left : "; cin >> x1;
cout <<
"\n Enter top : "; cin >> y1;
cout <<
"\n Enter right : "; cin >> x2;
cout <<
"\n Enter bottom : "; cin >> y2;
SetForeColor(0,0,0); //set
color to black
PaintRect(x1,y1,x2,y2); //paint
a rectangle
InvertOval(x1,y1,x2,y2); //invert
an oval
SetForeColor(255,0,0); //set
color to red
FrameOval(x1,y1,x2,y2); //frame
an oval