← Back

## Code Challenge 15 - Coin Flip Simulator

### Introduction

This program simulates flipping a coin many times and seeing how many flips result in heads or tails.

#### Skills to Practice

- Generating random numbers
- Writing if statements
- Repeating statements with loops
- Calculating statistics

### Challenge Tasks

- Create a console project named
**CodeChallenge15CoinFlipSimulator**.
- Prompt the user for the number of flips to be performed.
- For each flip:
- Randomly generate ‘heads’ or ‘tails’.
- Track the number of heads and tails results.

- After all the flips are finished, output the number of heads and tails results, as well as the percentages.

#### Sample Output