# c programing 10

Odds are a numerical expression, usually expressed as a pair of numbers, used in both gambling and statistics . In statistics, the odds for or odds of some event (Links to an external site.)Links to an external site. reflect the likelihood that the event will take place, while odds against reflect the likelihood that it will not. In gambling, the odds are the ratio of payoff to stake, and do not necessarily reflect exactly the probabilities. Odds are expressed in several ways (see below), and sometimes the term is used incorrectly to mean simply the probability of an event.[1] [2] Conventionally, gambling odds are expressed in the form “X to Y”, where X and Y are numbers, and it is implied that the odds are odds against the event on which the gambler is considering wagering. In both gambling and statistics, the ‘odds’ are a numerical expression of the likelihood of some possible event. â€“ Wikipedia

We are going to build a program that will display the winnings with a specified set of odds. This program will require you to ask the user for the input the odds:

Please input values for odds X to Y.

Enter value for X:

Enter value for Y:

Then the program will ask for the amount wagered:

Enter amount Wagered:

Then the program will calculate the odds and output the results in the following format:

For a wager of \$000.00 with odds of X to Y,

You would win \$0000.00! Good Luck!

The calculation for winnings with odds is amount + ((amount * X) Ã· Y). Here is a chart of calculations on a \$2 bet: