We count 35 heads and 94 legs among the chickens and rabbits in a farm. how many rabbits and how many chickens do we have
Answers
Answered by
4
hello...
rabbits, chickens = 35, 0 while rabbits >= 0: legs = rabbits * 4 + chickens * 2 if legs == 92: print ("Rabbits : {} \n Chickens : {}".format (rabbits, chickens )) else: rabbits, chickens += -1, 1 .
I hope it help you
rabbits, chickens = 35, 0 while rabbits >= 0: legs = rabbits * 4 + chickens * 2 if legs == 92: print ("Rabbits : {} \n Chickens : {}".format (rabbits, chickens )) else: rabbits, chickens += -1, 1 .
I hope it help you
Answered by
3
23 chicken
Please mark me brainliest plz
Please mark me brainliest plz
Similar questions
Math,
7 months ago
English,
7 months ago
Political Science,
1 year ago
Math,
1 year ago
Chemistry,
1 year ago