Question: In C++ please! WARNING: you MUST use for loop to complete this exercise in order to receive points! Write a program that takes 10 integers
In C++ please!
WARNING: you MUST use for loop to complete this exercise in order to receive points!
Write a program that takes 10 integers as input from the user. The program then computes and outputs the sum of the even integers.
Ex: if the input is:
1 2 3 4 5 6 7 8 9 10
then the program will output:
The sum of all even numbers is: 30
If there are no even numbers in the array, the total sum should be 0. 
WARNING: you MUST use for loop to complete this exercise in order to receive points! Write a program that takes 10 integers as input from the user. The program then computes and outputs the sum of the even integers. Ex: if the input is: 1 2 3 4 5 6 7 8 9 10 then the program will output: The sum of all even numbers is: 30 If there are no even numbers in the array, the total sum should be 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
