0
Python related challenge
I want a program which would return max number of people getting the money. Eg: There is a ₹10 note given and it said that distribute ₹3 each one in the room. There are 10 people in the room. How would I calculate that this much people got ₹3. I tried with floor divison operator but here I needed how much people would get the money, given the number of rupees to be distributed that to using input function.
1 Respuesta
+ 1
#Take input of people.
people=int(input())
#Take input of money.
...
#Take input of each.
...
share= money // each
result= people -(people-share)
print(result)