Win a copy of Kotlin Cookbook this week in the Kotlin forum!
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
• Campbell Ritchie
• Liutauras Vilda
• Bear Bibeault
• Paul Clapham
• Jeanne Boyarsky
Sheriffs:
• Junilu Lacar
• Knute Snortum
• Henry Wong
Saloon Keepers:
• Ron McLeod
• Tim Moores
• Stephan van Hulst
• Tim Holloway
• Carey Brown
Bartenders:
• Frits Walraven
• Joe Ess
• salvin francis

# puzzle of the day

Ranch Hand
Posts: 234
a man is stranded on a desert island. All he has to drink is a 20 oz bottle of sprite.
To conseve his drink he decided that on first day he will drink one oz and refill the bottle back up with water. On the 2nd day he will drink 2 oz and refill the bottle. on the 3rd day and so on...
By the time all the sprite is gone, how much water has he drunk?

Ranch Hand
Posts: 1871
20 oz

Wanderer
Posts: 18671
190 oz.

Ranch Hand
Posts: 2545
Everyday he filled with pure water, so the water he drank is the water he filled.
So he totally drank
1 + 2 + .... + 19 = 190
that is after day 20 when drink all the fluid in the bottle.

John Lee
Ranch Hand
Posts: 2545

Originally posted by Jim Yingst:
190 oz.

I agree with you.

Sameer Jamal
Ranch Hand
Posts: 1871

Originally posted by Sameer Jamal:
20 oz

That too of a sprite
He did not drank even a drop of water
Am I right

Ranch Hand
Posts: 346
190 + 18 = 208 oz
sprite is 90% water

Ranch Hand
Posts: 109
133?

Ranch Hand
Posts: 4702
9
where did he get the water to refill the bottle?

a man is stranded on a desert island. All he has to drink is a 20 oz bottle of sprite.

Jim Yingst
Wanderer
Posts: 18671
Good point, Gagan.
Randall - maybe it's a desert island in the midst of a freshwater lake. Or maybe the man is going ahead and drinking saltwater. I doubt he'd last twenty days at that rate though.

sona gold
Ranch Hand
Posts: 234
ok guys... its Don Liu again