in Programming

A programmer and his wife.

She says, “We’re out of bread. Please go the grocery store and buy one. And if they’ve got eggs, get six.”

After a while, he’s back with six loaves of bread.

The wife asks, “Why did you buy 6 loaves of bread?”

He replies, “They had eggs.”

Comments (3)

He should have bought 7 loaves of bread. The first instruction is the unconditional "get one loaf of bread", so he should buy 1 loaf. The second is the conditional "if they have eggs, get six loaves" which means he should get six MORE loaves. In total, therefore, he should buy 7, not 6 loaves of bread.

This is a perfect example of how retarded men are when women try to flirt with their crush. [IF it's a guy. Never know who nowadays] ............. I say this but I'm ACTUALLY a guy. XD

isn't that a joke about how you need very very specific and literal instruction if your programming.