Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

java program

$
0
0
A user will input a sequence of positive integers ending with a sentinel -1. write a while loop hat counts the number of even and odd integers and prints the cumulative total. for example, if the input is 1 7 2 9, the program should print out 1 8 10 10 EVEN:1 ODD:3

Viewing all articles
Browse latest Browse all 51036

Trending Articles