Newer
Older
Ruby / bai.rb
@NARITA Reo NARITA Reo on 22 Sep 2021 339 bytes 2021-09-22 22:19:08
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

first=gets.to_i
second=gets.to_i
three=first<second*2

printf("%dと%dの二倍の数があります。\n",first,second)
printf("さてこの場合、%dが大きい。それはtrue(正しい)でしょうか、false(正しくないでしょうか?\n",second)
printf("正解は、%s!\n",three)