DEV Community

Zachary Stone
Zachary Stone

Posted on

Birthstone challenge with loops

A really simple challenge. But it was still fun to do. You don't have to have massive challenges to overcome, sometimes a quick 15 min thing you throw together is fun to exercise your mind with. I threw this together while helping a student on the problem. I wanted to see if I could do it and what my thought process would be. Don't be afraid of overcoming mole hills. Too many times I don't do challenges because I can't climb Everest!

Comment below how I could clean this up and make it simpler! All while keeping the for loops. (It's part of the warmups for loops.)

Discussion (0)