- 1

Could you please assist me in writing this program

Write a program that prompts the user to type a positive integer. When the user types a negative value the program outputs ERROR and asks for another value. When the user inputs 0 (zero) that means that the last value has been typed and the program must output the average of the positive integers. If the user has not input any values, the program should output 'NO AVERAGE'. [Hint Combine loops and if else statements and research about the break statement]

14th Jun 2018, 1:17 PM
Juliet
2 Antworten
+ 10
Please show us your attempt.
14th Jun 2018, 1:24 PM
A Fox
A Fox - avatar
+ 6
Juliet Please show your attemp in code. make it in the plaground save it link it to a new comment. press "+" select code
14th Jun 2018, 1:24 PM
Manual
Manual - avatar