if a>0
puts a
end
If
puts a if a>0
if a>0
puts a
else
puts ""
end
If
puts a>o ? a:"0"
it seems like.
further if a>0 puts a else b=gets.chomp end If
a>o ? puts a:b=gets.chomp
it seems like.
As a memorandum for beginners ^^
Recommended Posts