subject

// DebugFive2.java // Decides if two numbers are evenly divisible
import java. util. Scanner;
public class DebugFive2
{
publicstaticvoidmain(Stringargs[])< br /> {
int num;
int num2;
Scanner input =newScanner(System. in);
System. out. print("Enter a number ");
num = input. nextInteger()
System. out. print("Enter another number ");
num2 = inputnextInt();
if((num % num2 ==0) && (num2 % num) ==0)
System. out. println("One of these numbers is evenly divisible into the other");
else
System. out. println("Neither of these numbers is evenly divisible into the other");
}

}

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 09:00, 19youngr
Which company provides a crowdsourcing platform for corporate research and development? a: mtruk b: wiki answers c: mediawiki d: innocentive
Answers: 2
image
Computers and Technology, 25.06.2019 02:30, hailee24
What group of plants produce fruit? question 2 options: gymnosperms nonvascular plants seedless vascular plants angiosperms
Answers: 1
image
Computers and Technology, 25.06.2019 11:30, perezsamantha3oqr0za
If you have a document that is relevant to more than one folder on your computer, what should you do? a. save the document to the most appropriate folder. b. save the document in each folder. c. save the document in my documents rather than in one of the folders. d. save the document to libraries.
Answers: 2
image
Computers and Technology, 25.06.2019 15:30, cxbelle
What does a file extension tell you? a. what the file is about b. where the file is located c. what type of file it is d. who created the file
Answers: 1
You know the right answer?
// DebugFive2.java // Decides if two numbers are evenly divisible
import java. util. Scanner;...

Questions in other subjects: