Question: Write a program to simulate tossing a fair coin. Allow the user to enter the number of tosses. Print the number of tosses that yield
Write a program to simulate tossing a fair coin. Allow the user to enter the number of tosses. Print the number of tosses that yield heads and the number of tosses that yield tails. What should be the percentage distribution of heads and tails? (Use the function rand_int)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
