Sha256: 53c5805f51b98033ed0d22f606cd36806f7441267cbd658e0cb35b2916fd0da8

Contents?: true

Size: 192 Bytes

Versions: 27

Compression:

Stored size: 192 Bytes

Contents

# -*- coding: utf-8 -*-
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

27 entries across 27 versions & 1 rubygems

Version Path
ruby_learner-1.1.4 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.3 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.2 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.1 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.0 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.0.1 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.0.0 takahashi/sample_prog/answer/3_1.rb