1. Engineering
  2. Computer Science
  3. write pseudocode in c that will add all the even...

Question: write pseudocode in c that will add all the even...

Question details

Write pseudocode in C# that will add all the even numbers from 0 up to a user defined stopping point (inclusive if even). Output the stopping point, and the sum of all even numbers up to the stopping point (inclusive if even). The algorithm output is as shown below.

Sample Outputs:

Stopping point: 12

Sum of all evens = 42

Stopping point: 9

Sum of all evens = 20

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution