medinburgh
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
number1 = ask "what is the first number?"
number2 = ask "what is the second number?"
operation = ask "what operation? (enter +, -, *, /)"
if operation == "+"
alert number1.to_f + number2.to_f
elsif operation == "-"
alert number1.to_f - number2.to_f
elsif operation == "*"
alert number1.to_f * number2.to_f
elsif operation == "/"
alert number1.to_f / number2.to_f
else end