Question: .Write a program in C language using only stdio.h and math library. A game of chance is played as follows: The player has two dice.
.Write a program in C language using only stdio.h and math library.
A game of chance is played as follows: The player has two dice. There are numbers 1-6 on the dice. Both dice are rolled by the player at the same time. If both dice roll 6, the player wins. Apart from this, if both dice rolls even numbers, the player has the right to roll the dice again (game starts again). If any of the dice rolls an odd number, the player loses the game. a program that simulates this game using a recursive function (recursive)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
