Skip to content

Instantly share code, notes, and snippets.

@saketkc
Created Jul 14, 2011
Embed
What would you like to do?
CodeChef(SPOJ) Problem1 Ruby Solution
a=[]
while STDIN.readline.chomp!="42"
a.push($_)
end
a.each { |s| puts s }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment