Settle an argument for me. Flip a coin and tell me heads ortails — I don't want to see a number, I want to see aword.Write your requirements list before you write any code. Input, calculate, output, and anything you had to decide for yourself.
Random.Shared.Next(0, 2) gives you a whole number from 0 to 1. That is two outcomes, which is exactly a coin.if / else.Only one-star challenges have this section. If you already know how to begin, skip it — and when you move up to two stars, working out the order yourself is part of the job.
Random.Shared.Next(0, 2) in an int.if that checks whether it is 0.else.HeadsYour program picks randomly, so this is only one possible run — “Tails” is just as correct. What matters is that both words are reachable and nothing else ever prints.
Your requirements list and your program file, named cc-coin-flip.