Skip to content

Instantly share code, notes, and snippets.

@jzgit
Created May 3, 2013 13:06
Show Gist options
  • Save jzgit/5509012 to your computer and use it in GitHub Desktop.
Save jzgit/5509012 to your computer and use it in GitHub Desktop.
correct counter
correct_counter = 0
if answer == supplied_answer
puts "correct!"
correct_counter += 1
else
puts "wrong :("
end
# more if loops here
puts "you got " + corrent_counter + " correct!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment