Newer
Older
Ruby / my6.rb
@NARITA Reo NARITA Reo on 5 Sep 2021 339 bytes 2021-09-05 11:57:52
#!/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)