Newer
Older
Ruby / sample-hello.rb
@ABE Koshun ABE Koshun on 25 Sep 2021 201 bytes 2021-09-25 21:54:16
#!/usr/bin/env ruby
# -*- coding: utf-8 -

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