write a program to input ten different numbers and display all the even numbers using for loop
Answers
Answered by
1
Answer:
If an integer number(never a fraction number) is exactly divisible by 2 which means it yields no remainder when divided by 2 then it is an even number. This same logic we are using here to find the even numbers. We are looping through 1 to n and checking each value whether it is evenly divisible by 2 or not, if it is then we are displaying it.
Explanation:
Similar questions