Question: What am I doing wrong? // Determine if a number is diisahle by another number System.out.println (Please enter 2 numbers); Scanner in- new Scanner(System.in); int

What am I doing wrong?

What am I doing wrong? // Determine if a number is diisahle

// Determine if a number is diisahle by another number System.out.println ("Please enter 2 numbers"); Scanner in- new Scanner(System.in); int num1- in.nextInt); int num2- in.nextInt); if (num1 % num2 !-0) System.out.println("Number is divisable by the another"); h else System.out.println ("Number is non-divisable")

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!