Course Solutions Uncategorized (Solved) : Code C M Trying Write Code Pick Sticks Game Assignment User Enter 1 2 3 Sticks Pick Pile T Q31783686 . . . .

(Solved) : Code C M Trying Write Code Pick Sticks Game Assignment User Enter 1 2 3 Sticks Pick Pile T Q31783686 . . . .

 

Code in C:

I’m trying to write code for a pick up sticks game for anassignment. The user can only enter 1,2, or 3 sticks to pick from apile. If two invalid numbers are entered in a row then the programis supposed to terminate. I’m having trouble figuring out how toget the program to accept only a 1,2, or 3. When I use the currentcode I have or try to use the variable I tied to scanf, the whileloop considers any number entered as invalid. Even if a 1,2, or 3is entered. What’s a good way to write the code so

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post