Newer
Older
Ruby / sample-hello.rb
@ABE Koshun ABE Koshun on 29 Oct 2022 189 bytes 2022-10-29 13:28:15
#!/usr/bin/env ruby
# -*- coding: utf-8 -

def kakezan(x,y)
  a=x*y
  return a
end
puts"2つ数値をいれてください。掛け算します。"
x=gets.to_i
printf("%d\n",kakezan(x*2))