Question: Problem 1 : Coin Tossing Simulation Write a program that simulates a coin tossing process. Let the program in main ( ) fu nction prompt
Problem : Coin Tossing Simulation
Write a program that simulates a coin tossing process. Let the program in main fu nction prompt the user
to enter the number of tosses and count the number of times each side of the coin appears. The main
should call a separate function called fio that takes no argu ments and returns for tails and for heads.
For your conven ience, the fun ction prototype is given below.
Function prototype: int flip void ;
Sample input output:
Enter number of tosses N:
The total number of Heads are
The total number of Talls are
write it using c
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
