Skip to content

Instantly share code, notes, and snippets.

@ssirowy
Created October 16, 2013 17:29
Show Gist options
  • Save ssirowy/7011630 to your computer and use it in GitHub Desktop.
Save ssirowy/7011630 to your computer and use it in GitHub Desktop.
Mid week ROTW (10/16)
You must answer both problems to win this week:
Programming Problem
A) if(condition)
printf("I love the");
else
printf(" C Language");
What should the condition be inside the if statement such that the code
snippet above will print "I Love the C Language" ?
Riddle
B) Two old friends, Jack and Bill, meet after a long time.
Jack: Hey, how are you man?
Bill: Not bad, got married and I have three kids now.
Jack: That’s awesome. How old are they?
Bill: The product of their ages is 72 and the sum of their ages is the same as your birth date.
Jack: Cool… But I still don’t know.
Bill: My eldest kid just started taking piano lessons.
Jack: Oh now I get it.
How old are Bill’s kids?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment