Alright so I didn\'t really know how to phrase this in the title, so here I go.
I had this problem for homework and I solved it, the code works fine and all but when