You are given a sequence of natural numbers. Find the maximum element divisible by 4. The input is passed to the program as follows:
The first number is the total number of elements in the sequence.
Use this number as a condition for your loop.The upcoming numbers are part of the sequence which need to be evaluated.
The numbers in the sequence may or may not be evenly divisible divisible by 4. The program should print a single number: the maximum element of the sequence that is evenly divisible by 4.
Try to solve this problem by using a while-loop.
Note: The first number passed to the program (number of elements in the sequence) isn't a part of the sequence.