2009年5月3日 星期日

if-else syntax

age=15
color="blue"
if age > 10 && age <25
puts "you are very young"
else
puts "you are not young"
end


if color=="blue" || color!="red"
puts "cold color"
else
puts "warm color"
end

沒有留言:

張貼留言