Read a count and then that many whole numbers into a list. Using streams, print three lines:
- how many numbers are greater than 0
- the sum of the even numbers
- the sum of the squares of all numbers
For 5 then 3 -1 4 -2 5:
3
2
55
Each line is one pipeline: filter narrows, mapToInt transforms, count and sum finish the job.