subject

Write a program using integers user_num and x as input, and output user_num divided by x three times. Ex If the input is
2000
2
Then the output is
1000 500 250
Note: In Python 3, Integer division discards fractions. Ex 6 // 4 is 1 (the 0.5 is discarded)
LAB ACTIVITY: LAB: Divide by x
main. py Load default template
1 user_num int(input)
2 Xintinput)
3 for 1 in range (3)
4 user_num. user_num//
5 print(user_num)
6
1. Compare output ^
Output is nearly correct, but whitespace differs. See highlights below
Input
2000
2
Your output
1000
500
250
Expected output 1000|50|250
2. Compare output ^
Output is nearly correct, but whitespace differs. See highlights below.
Input
100
4
Your output
25
6
1
Expected output
25 |6|1|
3. Compare output ^
Output is nearly correct, but whitespace differs. See highlights below.
Input
8000
-2
Your output
-4000
2000
-1000
Expected output
- 4000|2000|-1000

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
What elements related to the release and success of the nes console do you see in modern console releases? what elements are no longer relevant to modern console gaming?
Answers: 3
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
You know the right answer?
Write a program using integers user_num and x as input, and output user_num divided by x three times...
Questions
question
Mathematics, 08.04.2021 14:00
question
Social Studies, 08.04.2021 14:00
question
Business, 08.04.2021 14:10
Questions on the website: 13722367