Question: Exercise 2 : Write a C + + program that does the following ( explain the code using comments ) : Prompts the user to
Exercise :
Write a C program that does the following explain the code using comments:
Prompts the user to enter a number N positive integer
Prints all the even numbers think of the return value of the division from to N using a for loop.
For each even number, check if it is divisible by ie return value of the division is null using an if statement. If it is print that it is divisible by otherwise, print that it is not.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
