Sha256: 258e4f31040caa71b7b64765b94d9d526df6a1be212ce8abecf3b0f61c668313

Contents?: true

Size: 247 Bytes

Versions: 27

Compression:

Stored size: 247 Bytes

Contents

# section_1/workplace.rb

repeat_count = ARGV[0].to_i
 math_num = ARGV[1].to_i

def for_system(a, b)
  answer = 0
  for i in 0..b do
    answer = answer + a
  end
  return answer
end

 a = for_system(repeat: repeat_count, math: math_num)
# puts a

Version data entries

27 entries across 27 versions & 1 rubygems

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