How to make a triangle with one angle being 90°
If the second screenshot of your desired result is the side view of the future prism, then you can dissolve geometry of the cube.  

Add a cube, in Edit mode choose Edge Select to select edges. Select one of the top edges of the cube. Press X > Dissolve Edges. 





Once the edge is dissolved the mesh becomes a prism.