krfultz
and many others are using
Hackety Hack
to learn how to code.
Hackety Hack is a free program for Windows, Mac OS X and Linux that can teach you how to make games, applications and more and share those programs with your friends. You can ask other budding programmers questions and follow them to see what code they're working on through the Hackety Hack website.
Sign up
Learn More
count = ask "How many numbers would you like to average?"
count = count.to_i
sum = 0.0
count.times do
number = ask "Please enter the next number."
number = number.to_f
sum = sum + number.to_f
end
result = sum/count
alert "The average of the " + count.to_s + " numbers your entered is " + result.to_s