Sha256: 33d53cddda90213a79f5bea8e519146594e35d2b5f2f5779267a88fe3e619173
Contents?: true
Size: 211 Bytes
Versions: 24
Compression:
Stored size: 211 Bytes
Contents
# section_3/part_1/answer.rb # 3-1-cube.rb x = ARGV[0].to_i y = ARGV[1].to_i z = ARGV[2].to_i area = (x * y + y * z + z * x) * 2 volume = x * y * z print '表面積=', area, "\n" print '体積=', volume, "\n"
Version data entries
24 entries across 24 versions & 1 rubygems