Taru
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
sum = 0
avg = ask "How many numbers do you want to average?"
avg = avg.to_i
avg.times do
number = ask "Please enter one of those numbers"
sum = sum + number.to_f
end
result = sum/avg.to_f
alert "The average of the " + avg.to_s + " numbers you entered is " + result.to_s