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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!