So I modified my code according to helios corrections and then made some further modifications. Now I can't seem to see why but the program just freezes or maybe enters an infinite loop? This occurs right after line 31's output. I suspect it has something to do with the if statement but running through it in my head it seems correct.
So it seems to depend on the inputs it will either pause or go though. For example, hitting 1 and enter over and over will complete the program but entering 1 then 2 then 3 etc. until 15. Will pause the program.
The order of evaluation is undefined. It won't necessarily happen in
snowfallReport[rows][columns]
columns++
snowfallReport[rows][columns]
columns++
as you expect. The operations could be in any conceivable order. Also, note you were printing the value of columns, which I assume is not what you intended.
Replace the entire inner loop with simply
That's embarrassing how easy it sounds once you explain it the correct way... I made a stupid mistake on line 45 I see that now. But wow, been trying to rack my brain around that whole inner loop. I appreciate the help.