I have a question like this. Write a program that reads integer from keyboard. If I enter a negative number it return a negative number. If all the numbers I enter are positive numbers then return the average of these positive numbers.
Can someone help me out this problem?