Question: 1 0 : Introduction to Java Technologies home > 2 . 2 5 : LAB: Divide input integers import java.util.Scanner; public class LabProgram { public

10: Introduction to Java Technologies home >2.25: LAB: Divide input integers
import java.util.Scanner;
public class LabProgram {
public static void main(String[] args){
Scanner scnr = new Scanner(
System.in);
int userNum = scnr. nextInt();
int divNum = scnr. nextInt () ;
for (int i=0; i3; i++){
userNum =userNum/divNum;
System.out.print(userNum);
}
}
}
Develop mode
When done developing your program, press the Submit submit your program for auto-grading.
Coding trail of your work What is this?
116 T 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0-0,0,0,0-0,0,0,0,
Latest submission -3:19 PM PST on 01/16/24
Only show failing tests
1:Compare output
Output is nearly correct, but whitespace differs. See highlights below. Special character legend
 10: Introduction to Java Technologies home >2.25: LAB: Divide input integers

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!