Computer Science, asked by tsuwae, 10 months ago

for every natural number m>1 ; 2m, m² - 1 and m² + 1 form a phythagoream triplet. Write a program to input the value of 'm' through console to display a 'phythagoream triplet'​

Answers

Answered by santhisiva2037
0

Answer:

The answer solved using Python 3.

Explanation:

a=int(input())    #Takes integer input

i=a/2 #original value

k=i**2 #square of number

print(a, k-1, k+1)

#Prints three triplets

Answered by udayagrawal49
0

Answer: The required python code is :-

a=int(input("Enter a natural number (>1) : "))

n1=a*2

k=a**2

print("The phythagoream triplet is : "+str(n1)+" , "+str(k-1)+" , "+str(k+1))

Please mark it as Brainliest.

Similar questions