Last active
August 29, 2015 14:02
-
-
Save jin/0453d96da81501c57499 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# http://www.spoj.com/problems/TEST/ | |
guess = STDIN.gets.chomp().to_i | |
while guess != 42 | |
puts guess | |
guess = STDIN.gets.chomp().to_i | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment