04-18-2018, 05:52 AM
So...after banging stuff into Alice 3, I think I have something.
You'll need two variables, one for the number of numbers and another for the sum. At the beginning, "sum" should be 0 and "number" should be an integer that is asked from a user. For "number" times, the sum should be the previous sum added to a decimal that the user puts in. After that, divide the sum by "number" and you should get the average.
I don't know how to turn that into a string for the user to see, though, but again I'm not too good with Alice 3.
Starring, written, directed, and produced by sometimes618.
Get Alice Fighters v0.7:
http://www.alice.org/community/showthread.php?p=57651#post57651
|