Question: Write a C program that simulates rolling a pair of dice. The program should use random numbers to generate the roll of each die and
Write a C program that simulates rolling a pair of dice. The program should use random numbers to
generate the roll of each die and then calculate the sum of the rolled pair. Ask the user to input the
number of times they want to roll the dice. Use a For loop to roll the dice times. Then, print out a table
that shows the roll number, the value of dice the value of dice and the sum of the two dice.
Please show the code
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
