jasmine22 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

bio_371_programming_assignment_1 by jasmine22

sum = 0.0
number = ask "How many numbers would you like to average?"
number = number.to_i
number.times do
newnumber = ask "Enter a number"
sum = sum + newnumber.to_f
end
alert "The average of the " + number.to_s + " numbers you entered is " + (sum/number).to_s