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.
Enter the number of legs:
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 : "))
while b<=r :
print (int (r),"cows and " ,int (s), "chicken" )