Write a program that reads three positive integers a
, b
, and c
, and determines whether the triangle with side lengths a
, b
, and c
is an acute triangle, an obtuse triangle, or a right triangle.
If it is an acute triangle, output 1
.
If it is an obtuse triangle, output 2
.
If it is a right triangle, output 3
.
You may assume that the input values a
, b
, and c
can always form a valid triangle.
three positive integers a
, b
, and c
If it is an acute triangle, output 1
.
If it is an obtuse triangle, output 2
.
If it is a right triangle, output 3
.