Question: C program 5. Write a main function that calls the roll_die function 10,000 times (use a 6 sided die) and count the occurrence of the
C program 5. Write a main function that calls the "roll_die" function 10,000 times (use a 6 sided die) and count the occurrence of the number of 1s, 2s, 3s, 4s, 5s, and 6s. Print the number of times each number has occurred to the screen. (You can follow the example from the lecture slides.) Example output of rolling a 6 sided die 10,000 times. Num 1s: 1666 Num 2s: 1723 Num 6s: 1595
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
