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

Version Path
ruby_learner-1.2.8 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.2.7 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.2.6 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.2.5 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.2.4 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.2.3 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.2.2 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.2.1 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.2.0 contents/questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.15 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.14 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.13 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.11 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.10 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.9 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.8 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.7 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.6 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.5 questions/sequential_check/section_3/part_1/lib/answer.rb
ruby_learner-1.1.4 questions/sequential_check/section_3/part_1/lib/answer.rb