January 15th, 2014, 07:13 PM
Looping for beginners
I'm as new as they get and I am currently learning C. I was wondering how I could loop this to ask my question over and over again until I have the right input in C. It would be awesome if someone could help. Please do not be thrown off because I am a noob. thank you in advance.
How do I get the program to go back and keep asking until someone has entered those parameters? Thank you in advance.
if(number >= 0 && number <=10)
January 15th, 2014, 07:21 PM
How to use loop
To get user input, you will have to lookup the function scanf.
January 15th, 2014, 07:27 PM
Thanks for that! exactly what i needed.