Question 10
Calculate Polynomial (x-1)(x-7)
Code:
# Get x
x = float(input("Please Enter a Value for X"))
# x-1
a = x-1
# x-7
b = x-7
# Calculate Product
product = a * b
# Print product
print("(x-1)(x-7) = ", product)
# Get x
x = float(input("Please Enter a Value for X"))
# x-1
a = x-1
# x-7
b = x-7
# Calculate Product
product = a * b
# Print product
print("(x-1)(x-7) = ", product)