More than 5 years have passed since last update.
a=gets.to_i; b=gets.to_i; puts [a+b,a-b,a*b,a/b].join(" ")
参考 https://www.amazon.co.jp/4%E3%81%BE%E3%81%99%E9%80%A3%E7%AE%97-%E5%9F%BA%E6%9C%AC%E7%B7%A8-%E5%B1%B1%E7%94%B0%E5%B9%B8%E5%AD%90/dp/405304796X
Register as a new user and use Qiita more conveniently