They help me as to structure | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

They help me as to structure

program where the user is capturing poaitive numbers : when a number is entered negative, the catch end and the average captured positive numbers be displayed

28th Oct 2016, 5:59 AM
walter augusto
walter augusto - avatar
1 Answer
0
Just use a do - While loop. You can check the value with an IF-Statement and store the numbers in an array.
13th Feb 2017, 11:11 AM
Christian Klünter
Christian Klünter - avatar