2020-10-15から1日間の記事一覧
def police_trouble(a, b) if a && b || !a && !b puts "True" else puts "False" end end police_trouble(true, true) #True police_trouble(false, false) #True police_trouble(true, false) #False # aもbもtrueの場合にtrue a && b # aかbのどちらかがt…
def police_trouble(a, b) if a && b || !a && !b puts "True" else puts "False" end end police_trouble(true, true) #True police_trouble(false, false) #True police_trouble(true, false) #False # aもbもtrueの場合にtrue a && b # aかbのどちらかがt…