Question: Write a function int roll_die(int num_sides) that returns the result of a die with sides equal to the num_sides argument. Call the function 10 times
Write a function int roll_die(int num_sides) that returns the result of a die with sides equal to the
num_sides argument. Call the function 10 times (using a for loop) and print the result to screen. Please write in C.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
