Java code where user can enter the height and base of a triangle and the program will calculate the area and perimeter if it is a right triangle