Cody

Problem 1147. Possible Outcomes of American Roulette

The payout for American roulette can be calculated by:

payout = (38/n)-1

where n is the number of squares the bet covers.

Given n and the amount bet, determine the possible outcome of one play.

Example:

x = [n amount_bet] = [4 25]

y = [amount_win amount_loss] = [212.5 -25]

Solution Stats

54.08% Correct | 45.92% Incorrect
Last solution submitted on Oct 26, 2016
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Join the 15-year community celebration.

Play games and win prizes!

Learn more