You could get by with SideA, SideB, and Hyp I would think, omitting SideC.
I probably would have organized my 3 sides within a structure.
Also I noticed you have included <string> you can swap all input to all uppercase or all lowercase to omit the caps problems