1 / 1

Casino Problem

ismet
Télécharger la présentation

Casino Problem

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A man goes in to a casino. He pays a euro entrance fee, he loses half his money, and he pays a euro to get his coat from the cloakroom when he leaves. He goes to a second casino. Again, he pays a euro to enter, loses half his money in the casino, and he pays a euro to get his coat from the cloakroom. He goes to a third casino, pays a euro to enter, lose half of his money, pays his last euro to get his coat from the cloakroom and leaves, having spent all his cash.Write a program to determine the amount that the man started with by testing different cash amounts (whole numbers). Start with €5.

More Related