Post a Python program that accepts at least two values as input, performs some computation and displays at least one value as the result. The computation must involve calling one of the predefined functions in the math library. Include comments in your program that describe what the program does. Also post a screen shot of executing your program on at least one test case. Be sure to choose a program different from any of the programs already posted by your classmates.
PYTHON CODE:
import math
# take input in variable a
a = int(input())
# take input in variable b
b = int(input())
# compute the value of output as square_root(a*a + b*b)/(a^5 + b^7)
output = math.sqrt(a*a + b*b)/(math.pow(a,5) + math.pow(b,7))
# display output
print(output)
CODE SCREENSHOT:
OUTPUT:
Get Answers For Free
Most questions answered within 1 hours.