Daily Challenge #59

Task for today:
The input is two numbers, for every number between those two (doesnt count the starting values), repeat it x times if the number is x.
The example will explain it better:

magify(3,6) => 4 4 4 4 5 5 5 5 5 #numbers between 3 and 6 are 4 and 5, so the output is 4 times 4 joined with 5 times 5
magify(5,9) => 6 6 6 6 6 6 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8

Have fun!

1 Like

If you don’t quite understand, look at the comment for example 1. Hopefully it will clear things up.

1 Like

Just replied :thinking: because was directly trying to solve this. :joy:

1 Like
My solution
3 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.