Brain Teasers
Programmatic Phrase II
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
Birth
For Each Thing
{
If itsPercentQuality = 100
Then itsPrice = 0
}
Death
Hint
"Birth" and "Death" are used for the beginning and ending of the program. So, everything therein could be called "Life."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 Hint Show Hint Hide Answer Show Answer
What Next?
View a Similar 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.
Solve a Puzzle
Comments
I have no computer programming experience so my brain exploded again
good teaser though
good teaser though
To post a comment, please create an account and sign in.
Follow Braingle!