Skip to content

Instantly share code, notes, and snippets.

@ohiofi
Created February 25, 2019 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohiofi/2c086d361cedfe8fa712477bdeda273b to your computer and use it in GitHub Desktop.
Save ohiofi/2c086d361cedfe8fa712477bdeda273b to your computer and use it in GitHub Desktop.
/* Prompt the user for the number of coin flips.
Flip the count the designated number of times - displaying the number of the coin flip and the result
Display the number of coin heads and number of tails!
How many flips would you like? 4
1. heads
2. tails
3. heads
4. heads
The results:
3 heads - 75.0%
1 tails - 25.0%
*/
public class CoinFlipper
{
public static void main(String[] args)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment