top of page
PROGRAMMING CHALLENGES
Use code: EXAMPREP50 to get 50% off the OCR GCSE Computer Science Essentials course.
Number of challenges
182
Coin Flip Simulation
Write a program that simulates flipping a coin a specified number of times. The program should ask the user to enter the number of coin flips, and then simulate the coin flips using random numbers. The program should output the number of heads and tails obtained.
1.1 Random Numbers
bottom of page