Soloway's recurring rainfall: Difference between revisions

→‎{{header|Wren}}: Added sample input/output
(→‎{{header|Wren}}: Added sample input/output)
Line 431:
System.print(" The current average rainfall is %(sum/n)")
}</syntaxhighlight>
 
{{out}}
Sample session:
<pre>
Enter integral rainfall (99999 to quit): 5.4
Must be an integer no less than 0, try again.
Enter integral rainfall (99999 to quit): -2
Must be an integer no less than 0, try again.
Enter integral rainfall (99999 to quit): 5
The current average rainfall is 5
Enter integral rainfall (99999 to quit): 2
The current average rainfall is 3.5
Enter integral rainfall (99999 to quit): 10
The current average rainfall is 5.6666666666667
Enter integral rainfall (99999 to quit): 99999
</pre>
9,476

edits