answersLogoWhite

0


Best Answer

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..

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Algorithm and flowchart to show that triangle is right anled triangle?
Write your answer...
Submit
Still have questions?
magnify glass
imp