Q. Write a program to computer (a + b)3 using the formula a3 + b3 +3a²b+3ab2?

 

Answer = 

 



a = int(input("Enter a :-"))
b = int(input("Enetr b :-"))
formula = a ** 3 + b ** 3 + 3 * (a ** 2) * b + 3 * a * (b ** 2)
print(formula)



Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post