In Python: 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
Added by Juan Carlos S.
Your feedback will help us improve your experience
James Kiss and 52 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
How to write a program using integers user_num and x as input, and output user_num divided by x four times. Ex: If the input is: 2000 2 Then the output is: 1000 500 250 125 Note: In Python 3, integer division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded).
Akash M.
2.11 zylab: Integer Division How to make a program using integers user_num and x as input, and output user_num divided by x four times. Ex: If the input is: 2000 2 Then the output is: 1000 500 250 125 Note: In Python 3, integer division discards fractions. Ex: 6 // 4 is 1 (the 0.5 is discarded).
Supreeta N.
Write a program using integers userNum and x as input, and output userNum divided by x four times. Ex: If the input is: 2000 2
Shelayah R.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD