1. Write1+1/2-1/3+1/4-1/5 ...+1/n program. 2. Write algorithms without equations.
There are chickens and rabbits in a cage, 12 heads and 36 legs. How many chickens and rabbits are there in the cage?
3. Mushrooms are fed with small thorns, and 20 mushrooms are collected in sunny days, 12 in cloudy days, * * and 1 120, with an average of 14 per day.
How many cloudy days?
4. A quadrilateral with 10 columns on each side. How many pillars are there in this quadrilateral? How many can you think of?
An exercise
5. There are three black hats and two white hats, and three are chosen for three people to wear. Let them look at the colors of other people's hats in turn and guess their own hats. The examiner immediately announces right and wrong after everyone guesses (others only know right and wrong, but don't know what color to guess), and then let the people behind continue to guess.
The first two people guessed wrong in a row, and the third person guessed right without looking at the color of others' hats. Excuse me: What color is the third person's hat? Briefly describe the reasoning process