06 Feb PMCA Sunday 10:00 Java Homework 20.02.02.
Write a method that reads in three angles (in degrees). State the type of the triangle based on the conditions below:
- If all three angles are 60, output Equilateral.
- If the three angles add up to 180 and exactly two of the angles are the same, output Isosceles.
- If the three angles add up to 180 and no two angles are the same, output Scalene.
- If the three angles do not add up to 180, output Error.