Question: Using Java: Create a program that ask user to show multiples of 2 or 3 (up to 3 times using a cycle) each time will

Using Java: Create a program that

ask user to show multiples of 2 or 3 (up to 3 times using a cycle)

each time will ask for if the multiples of 2 or 3

Enter initial value

Enter final value

Show the multiples of 2 or 3 between the initial value and final value

Example: user input multiples of 2

Initial value: 2

Final Value:10

Multiples:

2, 4, 6, 8, 10

user input multiples of 3

Initial value: 1

Final Value:12

Multiples:

3, 6, 9, 12

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!