Associate
how's it going, i'm learning a bit of C at the moment and i'm having problems.
here's my story so far, i've been given an assignment to do (basically to program a fully functional lottery).
so i have the user selecting from a menu to scan in 7 numbers, but my problem is how can i keep the user from selecting int's higher than 42 (42 is the highest in the irish lotto)?
i'm not looking for the code as i'd prefer to learn it myself but any pointers would greatly be appreciated.
here's my story so far, i've been given an assignment to do (basically to program a fully functional lottery).
so i have the user selecting from a menu to scan in 7 numbers, but my problem is how can i keep the user from selecting int's higher than 42 (42 is the highest in the irish lotto)?
i'm not looking for the code as i'd prefer to learn it myself but any pointers would greatly be appreciated.