![camilaird](/avatars/6066.jpg)
camilaird
17.01.2020 •
Computers and Technology
Developed by frank vahid. write a program using integers usernum and x as input, and output usernum divided by x four times. for example, if the input is: 2000 2 where user_num = 2000 and x = 2, then the output must be: 1000 500 250 125 note: all the values must be printed on the same line. also, recall that in python 3, integer division discards fractions. ex: 6 // 4 is 1 (the 0.5 is discarded).
Solved
Show answers
More tips
- G Goods and services How to Choose a Video Camera: Tips from Professionals...
- F Family and Home How to Remove Tar Stains: Tips and Recommendations from Experts...
- H Health and Medicine Novomin: What is it and how to use it?...
- P Philosophy Unbelievable stories of encounters with otherworldly forces...
- L Leisure and Entertainment How to Choose the Perfect Gift for Men on February 23rd?...
- H Health and Medicine How to Treat Whooping Cough in Children?...
- H Health and Medicine Simple Ways to Lower Cholesterol in the Blood: Tips and Tricks...
- O Other How to Choose the Best Answer to Your Question on The Grand Question ?...
- L Leisure and Entertainment History of International Women s Day: When Did the Celebration of March 8th Begin?...
- S Style and Beauty Intimate Haircut: The Reasons, Popularity, and Risks...
Answers on questions: Computers and Technology
- C Computers and Technology Help ma??!! please please...
- C Computers and Technology write a 2d array c program that can capture marks of 15 students and display the maximum mark, the sum and average...
- M Mathematics (5)(5)(5)(5)(5)(5)(5)(5)(5)(5)(5)(5)(5)(5)(5)...
- H History Which of the following are elected officials? (Check all that apply)...
- M Mathematics If f(x)= 2x^3+ 4x^2- 6x + 40 and x + 4 is a factor of f(x), then find all of the zeros of f (x) algebraically....
- M Mathematics On Sunday, a local hamburger shop sold a combined total of 448 hamburgers and cheeseburgers. The number of cheeseburgers sold was three times the number of hamburgers sold....
- H History What was one of the main reasons for the racial split within the Methodist Church after Reconstruction and the foundation of the Colored Methodist Episcopal Church? African...
- M Mathematics Nadia has two pairs of jeans, one pair of khakis, and two pairs of black pants she wears to school She also has two red shirts, two white shirts, and one gray shirt from...
- M Mathematics Can someone help please...
- C Chemistry Answer please thanks...
Ответ:
Explanation:
Let's do this in Python. We will loop through 4 times, each of the loop would compute the dividend, store it as string in a result variable and finally print the result on the same line:
def divide_4_times(user_num, x):
result = ''
for i in range(4):
user_num /= x
result += (' ' + str(user_num))
print(result)
Ответ:
ago look up aint get to roll no weed answer the rest and u get 20
explanation: