Kermitdude 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

project_euler_question_1__2 by Kermitdude

sum = 0
for i in (1..999)
  if i % 3 == 0 || i % 5 == 0
  sum += i
  end
end
alert "The answer to the first\n Project Euler Question is\n" + sum.to_s

x, y, sum = 1, 1, 0
while sum < 4_000_000
  sum += (x + y)
  x, y = x + 2*y, 2*x + 3*y
end
alert "The answer to the second\nProject Euler Question is\n" + sum.to_s