A farmer raises cows and chickens. A cow has 4 legs, and a chicken has 2 legs. Design the python program Exercice2.py which:

Reads the total number of legs, a positive integer multiple of 2. You don’t have to validate it.

And which then displays all the possibilities concerning the number of cows and the number of hens.

Example 1:

Enter the number of legs:

8

The possible solutions with 8 legs are:

cow(s) and 4 hen(s)

cow(s) and 2 hen(s)

cow(s) and 0 hen(s)

where is my program i start

`nb = int (input ("enter number of legs : "))`

`b=4`

`c=2`

`r=nb`

`while b<=r :`

` r=r/b`

`s=r/c`

`print (int (r),"cows and " ,int (s), "chicken" )`