Question: (10 points) Write a code fragment (NOT an entire program) that prompts the user to input an integer and determines if the value entered is

 (10 points) Write a code fragment (NOT an entire program) that

(10 points) Write a code fragment (NOT an entire program) that prompts the user to input an integer and determines if the value entered is a multiple of 7 (but not a multiple of 11), a multiple of 11 (but not a multiple of 7), both or neither. In such cases, print out 7, 11, both and neither, respectively. You should only produce one line of output. Here are some sample runs. Enter a number: 73 neither Enter a number: 70 7 Enter a number: 121 11 Scanner in new Scanner (System.in)

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!