Created
May 3, 2013 13:06
-
-
Save jzgit/5509012 to your computer and use it in GitHub Desktop.
correct counter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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