Computer Science, asked by rhjayawanth2000, 1 year ago

Pythagorean Triplets in the Range
Problem Description

Python Program to Determine all Pythagorean Triplets in the Range

Input:
Upper limit

Output:
Print the Pythagorean Triplets in the Range
Test Case 1

Input (stdin)
20

Expected Output

3 4 5

8 6 10

5 12 13

15 8 17

12 16 20
Test Case 2

Input (stdin)
35

Expected Output

3 4 5

8 6 10

5 12 13

15 8 17

12 16 20

7 24 25

24 10 26

21 20 29

16 30 34


in python programming language

Answers

Answered by CuteeGirlNaira
2
Hey mate H2 = P2 + B2 it's Pythagorean theorem mate
plz plz follow me if you don't mind

rhjayawanth2000: hey girl i need full answer not like a hint ok dude
rhjayawanth2000: okk first u tell me the answer in detail then i will add in brainliest
Answered by KimSoBura
4

 {h}^{2}  =  \:  {p}^{2}  +  {b}^{2}

this is the formula of Pythagorean theorem

Similar questions