Posts Tagged ‘21006’
Write a loop that reads positive integers from standard input and that terminates when it reads an integer that is not positive.
LANGUAGE: JAVA CHALLENGE: 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 and separated by spaces, the sum of all the even integers read, the sum of all the odd…
Read More