Brain Teasers Optical Illusions Puzzle Hunts Codes & Ciphers Mechanical Puzzles
Personal Links
Browse Teasers
Search Teasers

Programmatic Phrase II



 

Puzzle ID:#50027
Fun:*** (2.74)
Difficulty:** (1.76)
Category:Other
Submitted By:eighsseAus******
Corrected By:eighsse

 

 

 



Find the common phrase that is represented by the following computer program code. Some amount of computer programming knowledge will help, as certain programming conventions are used. However, it may be solved without, as it is written in a very high-level (i.e., human-like) language.

Birth
For Each Thing
{
If itsPercentQuality = 100
Then itsPrice = 0
}
Death



Answer

"The best things in life are free."

Everything between "Birth" and "Death" is "Life." Within "Life," the program is scanning the quality of each "Thing." If the quality is 100%, then it is one of "the best things in life," and its price is set to 0, or "free."

Hide




What Next?

  
  

See another brain teaser just like this one...

Or, just get a random brain teaser

If you become a registered user you can vote on this brain teaser, keep track of
which ones you have seen, and even make your own.

 


Comments




Back to Top
   


Online Now
8 users and 612 guests

Users In Chat
Aviator
Follow Braingle!
Tap into all 20,000+ of our brain teasers, riddles and puzzles on your iPhone or iPad.

Braingle in the iTunes App Store
Copyright © 1999-2017 | FAQ | Widgets | Links | Green | Subscribe | Contact | Privacy | Conditions | Advertise | Braingle Time: 11:07 pm
Sign In Create a free account