Computer Science, asked by pabrenekka4, 9 months ago

write algorithm and draw the flowcharts:accept three numbers and check whether they are pythagorean triplets or not. display the message accordingly

Answers

Answered by srajfaroquee
46

Answer:

Algorithm:

In this algorithm, a b c are three integer variable entered by users.

1. START

2. Get three numbers a , b , c

3. if ( (a*a + b*b) == c*c ) then

4. Display "These numbers are Pythagorean triplets. "

5. else

6. Display "Numbers are not Pythagorean triplets. "

7. end if

8. END

Flow Chart  : see the image.

** Please follow me and mark this ans as Branliest answer.Thank you!

Attachments:
Answered by sharvarijadhav059
7

View the image for your answer

Hope it helps

Attachments:
Similar questions