answersLogoWhite

0

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

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
JudyJudy
Simplicity is my specialty.
Chat with Judy

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