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

¿De qué trata la canción "Come un eroe della Marvel"?
_____ is a product of photosynthesis that becomes food for the autotrophs that produce it.
James has a board that is 3/4 foot long. He wants to cut the board into pieces that are each 1/8 foot long. How many pieces can James cut from the board? James
What is the solution to the equation ſ x+1= 3x-79 X=-16 X=-4 x=4 X= 16
What method can be used to write the equation of a line in slope-intercept form given two points? Find the slope using the formula , and then substitute one poi
A hummingbird movies its wings at a rate of 4800 wing beat a minute. write this rate in wingbeats per second ​
Read the extract given below and answer the questions that follow. "The Laburnum Top is silent, quite stillIn the afternoon yellow September sunlight,A few leav
what is tone (for drawing btw)
simplify [tex]\sqrt-50\\[/tex]
Is the posterior ramus will innervate Dermatomes. If not, then which does that ?