Question: Using loops write a program to read the numbers until -1 is encountered. Caluclate the sum and mean of all positive numbers entered and the
Using loops write a program to read the numbers until -1 is encountered. Caluclate the sum and mean of all positive numbers entered and the sum and mean of all negative numbers entered seperately.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
