loading...

re: Daily Challenge #249 - Incremental Changes VIEW POST

FULL DISCUSSION
 

in ruby

def alg(number, iteration, step)
  number + (iteration * step)
end
alg(100, 5, 50)
=> 350
alg(14, 20, 4)
=> 94
code of conduct - report abuse