Making kid Game
I want to make my kid a game for his birthday. I have learned C in college but that's like few years back. I think I know the basics.
So basically, the game would display on the screen something like 2 + 2 =
pr 2 * 3 = and at the bottom have a multiple choice. Once he enters the number from the list below it says wrong or right.
I just can't figure out the logic. Will have have to specify all the scenerio in a case statement or is there a easy way to using randomize to do this.
Please let me know if you need any more info. Thanks
they way i would do it is make a small array of how ever many possible answers you want to have, fill all the elements with a random number, then...
generate a random number between 0 and the biggest element to load in the right answer then
take input of the element x
then test the element to see if it was true or not
Thanks for your help!!. That makes sense.