Calculate the cube of the number
Write a program that receives a numeric and calculates the cube
Cube number x = x to power 3
Write a program that receives a numeric and calculates the cube
Cube number x = x to power 3
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error' alert(msg)This answer is only visible to premium members
This answer is only visible to premium members
number=float(input("enter a number:")) mohasebe=number**3 print("The answer is {}".format(mohasebe))
x=float(input("x")) m=(x**3) print(m) or x=float(input("x")) print(x**3)
def moka(num): mokab = num ** 3 return mokab print(moka(num=int(input("enter your number:"))))
TN = int(input("Enter the cube of the number: ")) TCON = (TN*TN*TN) print("The cube is a number:", TCON)
print(float(input()) ** 3)
x = input("لطفاٌ یک عدد وارد کنید") mokaab = (int(x) ** 3) print (mokaab)
x = input("لطفاٌ یک عدد وارد کنید") mokaab = (int(x) ** 3) print (mokaab)
Submitting answers is currently unavailable.
برای استفاده از این بخش باید وارد حساب کاربریت بشی
ورود/ثبت نام If you don’t understand the exercise or can’t solve it for any reason, that’s completely
normal—don’t worry 😊
Try checking out easier exercises and reviewing different answers
submitted by others. Gradually, you can move on to more challenging exercises. Also, your answer
might be correct even if it’s different from others.