Question: java language 14. Write a program that asks the user to enter a number 'z' to do: (35%) a. Count numbers between 1 to z

java language
java language 14. Write a program that asks the user to enter

14. Write a program that asks the user to enter a number 'z' to do: (35%) a. Count numbers between 1 to z that are divisible to 4, for example if z=13, there are 3 numbers that divisible to 4 which are 4,8 and 12, An example of the program is: IND DD (25%) run: Enter 2:13 Counter of 4's divisibles:3 BUILD SUCCESSFUL (total time: 4 seconds) b. If the program reaches 100, it should stop counting and print a message as this example shows: (10%) ID DD run: Enter 2:117 100 is reached stop counting Counter of 4's divisibles:25 BUILD SUCCESSFUL (total time: 7 seconds)

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!