I'm trying to write a program that calculates the area of a square or a triangle. The program should only recognize the entries 's' or 't' (for square / triangle) and must not recognize capital letters or any other symbol.
I'm still in the very early stages of writing this and am confused.
If I understand correctly int refers to an integer, but if I ask the user to enter 's' or 't' what would I use?