真费劲,又转了一个语言
val=gets
i=1
while val.chomp.to_i != 42
if i==1
puts "#{val}"
i+=1
end
val= gets
if val.chomp.to_i != 42
puts "#{val}"
end
end
Consuming a little, a little Comfortabler; Consuming a lot, a lot Comfortabler; Consuming all, completely Comfortable. Chairman Mao
val=gets
i=1
while val.chomp.to_i != 42
if i==1
puts "#{val}"
i+=1
end
val= gets
if val.chomp.to_i != 42
puts "#{val}"
end
end