faithw3109 faithw3109
  • 06-05-2022
  • Computers and Technology
contestada

Write a program using integers user_num and x as input, and output user_num divided by x three times.

Respuesta :

issssse
issssse issssse
  • 06-05-2022

Code:

user_num = int(input("user_num: "))

x = int(input("x: "))

print(user_num / x ** 3)

Explenation:

First, we make the user give us the values of user_num and x using the input() function. However, to later perform math with them, we first have to convert them into "int" using the int() function. Then we assign a variable to the values. At last we print user_num / x ** 3, since it's the same as dividing user_num by x three times.

Answer Link

Otras preguntas

Can x and y intercepts be in decimals or fractions?
What is the river that forms a border between Argentina and Uruguay?
Sonya found that x = - 4/3 is one solution of (6x + 4)2 = ?. The other solution is x = ? .
what role do producers play in establishing earth as a living planet
what type of reaction provide energy within a red giant star? and how come?
1. A dance floor is made from square wooden tiles with a side length of 1 foot. The floor can be laid out as a square or a rectangle. The width of the rectangul
How does the air in a bicycle tyre cause pressure?
What are the components of clean air?
how would you divide 0.294/3?
Need help with my homework please help number 4 5 6 and 7 ASAP! 4 5 6- find the unknown measures!