Skip to content

Instantly share code, notes, and snippets.

@johndel
Created July 12, 2014 08:10
Show Gist options
  • Save johndel/12f628143442051e388c to your computer and use it in GitHub Desktop.
Save johndel/12f628143442051e388c to your computer and use it in GitHub Desktop.
Calculation of cagniotte
bet1 = 2.25
bet2 = 3.15
bet3 = 3.15
puts "#{(1 - 1/(1/bet1 + 1/bet2 + 1/bet3)) * 100}%"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment