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.2.9 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.8 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.7 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.6 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.5 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.4 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.3 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.2 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.1 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.2.0 contents/takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.15 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.14 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.13 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.11 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.10 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.9 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.8 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.7 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.6 takahashi/sample_prog/answer/3_1.rb
ruby_learner-1.1.5 takahashi/sample_prog/answer/3_1.rb