KBeanie

Coding Exercise: Am I engaged?

isSearchComplete = false;
while (!isSearchComplete) {
        if (isBeautiful(girlAtHand)) {
                isSearchComplete = true;
                exchangeRings();
                break;
        } else {
                girlAtHand = getNextGirl();
        }
}
.
.
.
.
.
.
.
.
.
.
.
.
.
more_beautiful_girl_1
more_beautiful_girl_2
and intelligent too!!!
.
.
.
.
exchangeRings();
isSearchComplete = false;

Hope, I don’t get killed after this…. 😀 😀 😀 😀 

3 thoughts on “Coding Exercise: Am I engaged?

Leave a Reply

Your email address will not be published. Required fields are marked *