Q. Write a program to obtain x, y, z from the user and calculate expression: 4x4 +3y3+9z+6p


You can understand by Watching video :-



Answer :-

x = int(input("Enter x = "))
y = int(input("Enter y = "))
z = int(input("Enter z = "))
expression = (4*x**4)+(3*y**3)+(9*z)+(6*3.14)
print ("Value = ",expression)

Output :-ac

Enter x = 5
Enter y = 6
Enter z = 7
Value =  3229.84

>>> 

Enter x = 1
Enter y = 3
Enter z = 5
Value =  148.84

>>> 

10 Comments

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

Post a Comment

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

Previous Post Next Post