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
>>>
my computer just burned
ReplyDeleteWhy ????
Delete🤣🤣🤣🤣🤣
ReplyDeleteBest
ReplyDeleteYes man
DeleteThank you : )
Deletecool
ReplyDelete: )
DeleteUse can also use math module for value of pi.
ReplyDeleteimport math
math.pi
Why ??
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )