Help with Craps game please

Hi there, I have written this craps game in C for my assignment and am just trying to put the finishing touches on it, but the problem is I can't get it to play more than 1 or 2 games...I know it's probably a simple little fix and I have been trying a number of things but it either plays up to 2 games or a concession of them, one after the other without user intervention....anyway I have posted the code for you to see;

Would you like to play craps?
y
Number of chips: 100
How much would you like to bet?
10
You rolled 1 + 3 = 4
Point to make is: 4
|--> rolled: 1 + 4 = 5
|--> rolled: 2 + 3 = 5
|--> rolled: 6 + 2 = 8
|--> rolled: 3 + 6 = 9
|--> rolled: 1 + 6 = 7
You Lose
You now have 90 chips!
Thanks for playing!
Games played: 1
|--> Games won: 0
|--> Games lost: 1
|--> Chips left: 90
Thanks for playing!
Would you like to play craps?
y
Number of chips: 90
How much would you like to bet?
10
You rolled 6 + 6 = 12
* * * You Lose * * *
You now have 80 chips!
Thanks for playing!
Would you like to play craps?
y
Number of chips: 80
How much would you like to bet?
10
You rolled 3 + 1 = 4
Point to make is: 4
|--> rolled: 2 + 6 = 8
|--> rolled: 1 + 1 = 2
|--> rolled: 3 + 4 = 7
You Lose
You now have 70 chips!
Thanks for playing!
Games played: 3
|--> Games won: 0
|--> Games lost: 3
|--> Chips left: 70
Thanks for playing!
Press any key to continue . . .

The problem is that you have the "junk" variable to get rid of the "\n" after inputting the answer in the main function, but you forgot to do it after inputting the bet amount in your play_craps function.

This should mean that you only get to play one game before the program stops, but you also made the mistake of calling the main function at the end of your play_craps function. That caused the main function to run a few times due to recursion before crapping out.

Also contributing to the multiple games is the fact that you call the play_craps function again in your main function even after the answer is determined to be something other than 'y' or 'Y'.