Week 3: November 23 – 29. For Loop. Part 1
The sequence of n real numbers is given. Find the sum and the number of negative elements in it.
The first line contains the number n (n ≤ 100) of sequence elements. In the next line n real numbers - the elements of sequence are given. Their values do not exceed 100 by absolute value.
Print in one line the number of negative elements and their sum with two digits after the decimal point.
5 6 -7.5 2.1 -2.0 0