- 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]
2 Réponses
+ 10
Please show us your attempt.
+ 6
Juliet
Please show your attemp in code.
make it in the plaground
save it
link it to a new comment.
press "+"
select code