Respuesta :
Answer:
The python program to this question as follows:
Program:
usernum= 2000 #define variable usernum and assign value
x=2 #define variable x and assign value
result = '' #define variable result
for i in range(4): #loop for calculate value
usernum =usernum//x #divide value
result += (' '+str(usernum)) #collect value
print(result) #print value
Output:
1000 500 250 125
Explanation:
In the above python program code firstly, two integer variable is defined that is "usernum and x" in which variable usernum holds a value that is "2000" and variable x holds a value that is "2", and a string variable result has defined, that store the calculated values.
- In the next step, a for loop is declare that runs four times, in which the usernum variable divides its value by variable x and stores all the values in string variable result.
- In the last print, function is used to print result variable value.
Answer:
User_num = int(input())
X = int(input())
User_num = user_num // x
Print(user_num, end=‘ ‘)
User_num = user_num // x
Print(user_num, end=‘ ‘)
User_num = user_num // x
Print(user_num, end=‘ ‘)
User_num = user_num // x
Print(user_num)
Explanation: