Question: Write a C program that plays the game of craps. A player rolls two dice, each dice has numbers 1-6. If the sum = 7
Write a C program that plays the game of craps. A player rolls two dice, each dice has numbers 1-6. If the sum = 7 or 11, player wins. If sum = 2, 3, 12, player loses. If the sum is anything else, the game continues, the sum becomes the players points. The game keeps playing until the player rolls the sum of points again, in this case player wins. I player rolls a 7 after the point then player loses.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
