Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

/ / DebugFive 2 . java / / Decides if two numbers are evenly divisible import java.util.Scanner; public class DebugFive 2 { public static void

// DebugFive2.java
// Decides if two numbers are evenly divisible
import java.util.Scanner;
public class DebugFive2
{
public static void main(String args[])
{
int num;
int num2;
Scanner input = new Scanner(System.in);
System.out.print("Enter a number ");
num = input.nextInt;
System.out.print("Enter another number ");
num2= input.nextInt;
if((num % num2==0) && (num2/ num)==0)
{
System.out.println("One of these numbers is");
System.out.println(" evenly divisible into the other");
}
else
{ System.out.println("Neither of these numbers is");
System.out.println(" evenly divisible into the other");
}
}
}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

2. (1 point) Given AABC, tan A b b

Answered: 1 week ago

Question

Discuss the history of human resource management (HRM).

Answered: 1 week ago