Use any Compiler IDE you want.
Required Output should be look like below image.
Compiler used: CodeBlocks c++ Compiler
These kinds of programs are basic level program can be coded in more than one way it is recommended to change the logic of program and do experiment with the code for better understanding
More C++ Shapes Here