192k views
5 votes
Write a program using integers user_num and x as input, and output user_num divided by x three times.

User Jayz
by
7.1k points

1 Answer

4 votes

Answer:

user_num = int(input("Enter an integer: "))

x = int(input("Enter another integer: "))

result = user_num / x

print(result)

result = result / x

print(result)

result = result / x

print(result)

Step-by-step explanation:

Okay so when you run the program, it will ask you to enter two integers (user_num and x), and then it will output the result of dividing user_num by x three times, as specified in the question.

User Georgette
by
7.9k points