Question: so far for my code, the numbers only output, 250 when I put 2002 can anyone help me fix the output? Thank you. It is

so far for my code, the numbers only output, 250 when I put 2002 can anyone help me fix the output? Thank you. It is supposed to produce 1000 500 and 250 when i put 2000 and 2  so far for my code, the numbers only output, 250 when
I put 2002 can anyone help me fix the output? Thank you.

Write a program using integers userNum and divNum as input, and output userNum divided by divNum three times. Note: End with a newline. Ex: If the input is: 20002 the output is: 1000500250 Note: In Java, integer division discards fractions. Ex 6/4 is 1 (the 0.5 is discarded) Default Template import java.uti1, scanner; public class Labprogram i public statio void main (String[] args) I 1. Type your code here. * Console i. Problems D Debug shell Lterminated> Labintegars [Java Application] /Users/laurenstone/p2/pool/plugins/org.eclipse.justi.open]dik.hotsp. 20002 250

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!