05.11.2015, 12:05
You start with 0 points. When you get 10 points (total of 10 points), you become level 2. When you get another 20 points (now a total of 30 points), you level up again, when you get another 30 points (now 60 in total), you level up again, and so forth. The recursive function you provided works fine, but I'd rather not use recursion if possible. Any way to do that?