STEP 1: Initialize side1, side2, side3 by 0 and sq_side1, sq_side2, sq_side3 by 0
STEP 2: Print 'Enter the three sides'
STEP 3: Read value in side1, side 2, side3
STEP 4: Perform square operation on three sides:
(a)Perform multiplication of side1 with itself and assign the result in sq_side1
(b)Perform multiplication of side2 with itself and assign the result in sq_side2
(c)Perform multiplication of side3 with itself and assign the result in sq_side3
STEP 5: Check;
(a)if (sq_side1 is equal to sum of sq_side2 and sq_side3)
Then
i)Move to Step 6(i)
(b)otherwise check;
1)if (sq_side2 is equal to sum of sq_side1 and sq_side3)
Then
i)Move to Step 6(i)
(c)otherwise check 1)
if (sq_side3 is equal to sum of sq_side1 and sq_side2)
then
i)Move to Step 6(i)
(d) otherwise1)Move to Step 6(iii)
STEP 6:i)Print 'Yes it's a right angle triangle'
ii) Move to Step 7
iii)Print 'No it is not a right angle triangle'
STEP 7: Stop
Hope u'll get some help with this..
Chat with our AI personalities
A right triangle is a triangle with a right angle.a right triangle is a triangle with 1 side as a right angle
A right angle triangle
It is a right triangle or right-angled triangle. The right-angle is 90 degrees.
Yes it is a right angle triangle.
no its not the scalene triangle will never be a right triangle