Joke Collection Website - Cold jokes - How to explain the problem of "programmers buy watermelons" to people who eat melons?

How to explain the problem of "programmers buy watermelons" to people who eat melons?

Let's eat watermelon today. Oh, no, it's about watermelon. The "Buy Watermelon Now" test widely circulated on the Internet means that you go to the vegetable market to buy watermelons. If you have tomatoes, buy me two. What will you take home? This answer has made many people who eat melons accept it! So, how should you explain to them and make them understand why you want to buy two watermelons? Let's take a look at the netizen's answer: academic version: if (seeing tomatoes) watermelon is equal to 2; Else watermelon = 1. Conditions for buying watermelons: Execute the command when ifyouseetomato: buy two watermelons. In fact, seeing tomatoes is the fuse to sell two watermelons ... if you don't see them, buy one watermelon, and if you see them, buy two watermelons. This is a simple procedure, so normal people are different from Cheng. Buytow Watermelon python Edition: Front-end Edition: Boyfriend is a front-end programmer. I just asked him. He said to buy watermelon, because watermelon is delicious and considerate. The intention is to let him buy watermelons. If he sees a tomato seller, he will buy two watermelons ... If the programmer sees a tomato seller, he will buy two watermelons ... Honest and frank logical deduction: if he buys a watermelon, he will buy two tomatoes when he sees tomatoes, so if there are tomatoes, it is a watermelon. The second logic: buy a watermelon, if you see tomatoes, buy two watermelons, if you can't see tomatoes, buy a watermelon. So buy two watermelons when you see tomatoes, and buy one watermelon when you can't see tomatoes. Memory killing version: What I heard when I was learning programming was that my wife came home and asked the programmer to buy two steamed buns. If she sees a watermelon seller, she will buy one. The programmer went home and bought a steamed bread. I think I should either buy a melon or two tomatoes and return them to the teacher. Binary version: Ultimate version: I originally bought a watermelon, but after seeing tomatoes, I bought two watermelons, because seeing tomatoes means I can eat two watermelons at night. .