2.12 LAB: Divide by x Write a program using integers user_num and x as input, and output user_num divided by x three tim
Posted: Tue Jul 12, 2022 8:15 am
2.12 LAB: Divide by x
Write a program using integers user_num and x as input, andoutput user_num divided by x three times.
Ex: If the input is:
Then the output is:
Note: In Python 3, integer division discards fractions. Ex: 6 //4 is 1 (the 0.5 is discarded).
395522.2658658.qx3zqy7
LAB ACTIVITY
2.12.1: LAB: Divide by x
Write a program using integers user_num and x as input, andoutput user_num divided by x three times.
Ex: If the input is:
Then the output is:
Note: In Python 3, integer division discards fractions. Ex: 6 //4 is 1 (the 0.5 is discarded).
395522.2658658.qx3zqy7
LAB ACTIVITY
2.12.1: LAB: Divide by x