It wouldn't be possible for anyone to answer your question in this short space. However, if you click here you will find a tutorial on using OpenGL which may give you some ideas. You can also try typing the key words into a search engine, which will take you to a page of results including other tutorials and articles on this topic. If you explore these results you should find something useful.
Write A Program In C/C++ Using OpenGL To Draw A Circle Of Red Colour Inside Of A Triangle Of Blue Colour On A Background Of Yellow Colour?
Write a program in C/C++ using OpenGL to draw a circle of
orange colour and inside that draw a triangle of green colour.