Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- A. Triangle
- Score: 1
- CPU: 1s
- Memory: 1512MB
- Given three side lengths of a triangle. Print whether the triangle is a equilateral triangle (three sides with equal length), isosceles triangle (two sides with equal length) or normal triangle.
- Input
- Each input will contain only three integer numbers representing the length of three sides of a triangle. Each side will be less than or equal to 100.
- Output
- The output will be “Bad Triangle” for a normal triangle, “Equilateral Triangle” for triangle with three equal length sides and “Isosceles Triangle” for two equal length sides.
- Samples
- Input Output
- 1 1 1
- Equilateral Triangle
- Input Output
- 6 8 10 Bad Triangle
- Input Output
- 5 10 5 Isosceles Triangle
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement