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.1.4 questions/random_check/section_1/lib/answer.rb
ruby_learner-1.1.3 questions/random_check/section_1/lib/answer.rb
ruby_learner-1.1.2 questions/random_check/section_1/lib/answer.rb
ruby_learner-1.1.1 questions/random_check/section_1/lib/answer.rb
ruby_learner-1.1.0 questions/random_check/section_1/lib/answer.rb
ruby_learner-1.0.1 questions/random_check/section_1/lib/answer.rb
ruby_learner-1.0.0 questions/random_check/section_1/lib/answer.rb