Question: Problem 3: Is Factor . Write a program that has the class name IsFactor. The program should ask the user to enter two integers (assume

 Problem 3: Is Factor . Write a program that has the

Problem 3: Is Factor . Write a program that has the class name IsFactor. The program should ask the user to enter two integers (assume both will be greater than 1). . The program should determine if the smaller of the two numbers is a factor of the larger of the two (regardless of which order the numbers are entered). Based on whether the smaller is a factor of the larger, print out the appropriate message. You may assume the user will always enter two different integers so one will be larger and one will be smaller . As a reminder, a factor of one number is any whole number that divides it evenly. So, 8 is a factor of 64, since 64 is evenly divisible by 8. Enter the first number: 5 Enter the first number: 35 Enter the second number: 65 Enter the second number: 2 5 is a factor of 65 2 is not a factor of 35

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!