# How many cows, sheep, and chickens did the farmer buy with $100.?

This farmer spent 100 dollars and purchased 100 animals

The cows are $10, the sheep are $3, the chickens are $0.50.

Howmany of each did he buy

### 5 Answers

- Anonymous1 decade agoFavorite Answer
5 cows, 1 sheep, 94 chickens

(I love brute-force problem solving with basic, coupled with the computer's speed of doing math)

FOR COW = 1 TO 100

FOR SHEEP = 1 TO 100

FOR CHICKEN = 2 TO 100 STEP 2

REM Chickens are 50 cents, and you know

REM the answer is going to be in whole dollars

TOTAL = (COW * 10) + (SHEEP * 3) + (CHICKEN * .5)

PRINT "Cows = "; COW, "Sheep = "; SHEEP, "Chickens = "; CHICKEN; " = "; TOTAL

IF TOTAL = 100 THEN 100

50 NEXT CHICKEN

NEXT SHEEP

NEXT COW

100 IF COW + SHEEP + CHICKEN = 100 THEN 100

REM That will stop it when it finds the answer

GOTO 50

- Login to reply the answers

- 1 decade ago
5 cows 1 sheep, 94 chickens

5 x 10 = 50

3 x 1 = 3

94 x 0.50 = 47

- Login to reply the answers

- How do you think about the answers? You can sign in to vote the answer.
- hurLv 44 years ago
What style of a farmer is he? He may be a dairy farmer - then he could want ten cows. He must be welsh and then he could want as many sheep as plausible. finally if he became Bernard Matthews then he could want a hundred turkeys

- Login to reply the answers