Step-by-step explanation:
Problem #1:
A number is divisible by 4 if the last 2 digits of that number are multiple of 4 . So for example the number 2316 is a multiple of 4 because it ends with " 16 " and " 16 " is a multiple of 4 .
Write a program that prompts the user to enter an integer and displays whether the number is a multiple of 4 or not. The program stops reading integers, when the user inputs a negative value. It shows at the end the total number of values entered which are multiple of 4 .
Sample Run:
Enter an integer: 4
4 is a multiple of 4
Enter another integer: 213
213 is not a multiple of 4
Enter an integer: 2316
2316 is a multiple of 4.
Enter an integer: -20
The total number of integers entered which are multiple of 4 is 2 .