Question: 2.21 Lab: Divide inout integers Write a program using ibtegers userNum and divNun as input, and output userNum divided by divNum three times. Note: End

2.21 Lab: Divide inout integers
Write a program using ibtegers userNum and divNun as input, and output userNum divided by divNum three times. Note: End with a newline.
In Java, integer division discards fractions.  2.21 Lab: Divide inout integers Write a program using ibtegers userNum

Write a program using integers usetNum and divNum as ingut, and output userNum dided by divum three times, Note, End with a newline. Ex if the input is: 2000.2 the oupout is: 1000500250 Note: In vava, integer divsion discards fractions. Ex:6/4is.1 (the 0.5 is discurded)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!