Newer
Older
Ruby / mesod.rb
@NARITA Reo NARITA Reo on 25 Sep 2021 222 bytes 2021-09-25 15:43:56
#!/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))