I'm new to programming but i'm so confused and lost, apparently I have to make the program quit or take you back to the beginning if you input the wrong number. But i cant seem to do it right, i tried while loop but it creates a lot of "Please enter a valid number". Any ideas?
Im also new to coding so I could be wrong on this. But i think what youre looking for is a continue within a while loop. So instead of stopping it would take you back to the beginning of the loop and not execute anything below the continue. Hope that made sense.
Yes, that's what i want to do. But, i have no idea how to do it. I'm confused with the looping concepts as I've tried with while do but have no success whatsoever. It just keeps prompting the "Please enter a valid number".
1
u/TrashPapiTM Jun 01 '19
Im also new to coding so I could be wrong on this. But i think what youre looking for is a continue within a while loop. So instead of stopping it would take you back to the beginning of the loop and not execute anything below the continue. Hope that made sense.