The Chicken and Rabbit Problem

# Introduction The Chicken and Rabbit Problem is a classic ancient Chinese puzzle that requires finding the number of rabbits and chickens on a farm based on the total number of heads and legs. In this challenge, we are given the total number of heads and legs and we need to write a program to find the number of rabbits and chickens.

|60 : 00

Click the virtual machine below to start practicing