I've tried doing it but it doesnt run

The array of real numbers is set.

a) To delete from the array positive elements.

b) To calculate the sum of negative elements in the array.

c) To calculate minimum of positive elements in the array.

solve using functions