Question: This is a SCRATCH question. This problem requires a loop. The first input to the problem is n (the number of numbers entered by the
This is a SCRATCH question.
This problem requires a loop.
The first input to the problem is n (the number of numbers entered by the user, n > 0). The program will respond to each of the n numbers input by saying if that number is even or not. When all numbers have been entered and responded to, the number of even numbers entered will be displayed. NOTE: The mod operator gives us the remainder when two numbers are divided. x mod y gives the remaineder when x is divided by y (x > 0 and y > 0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
