Question: instructions Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. After
instructions Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive. After the loop terminates, it prints out, on a line by itself, the sum of all the even integers read. Additional Notes: Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly. Sample Run #1 of 1 Interactive Session Visible newlines 1 NNm tin c m00 2 3 4 5 6 7 8 -1 ? Visible whitespace Display stdin Display stdout
Step by Step Solution
3.40 Rating (153 Votes )
There are 3 Steps involved in it
by using a while loop to read positive integers from standard input until a nonposi... View full answer
Get step-by-step solutions from verified subject matter experts
