m = int(input("Number of boys: "))
n = int(input("Number of girls: "))
p = int(input("Number of pets: "))
group = min(m, n, p)
print("The number of groups:", group)
Example:
Number of boys: 3
Number of girls: 4
Number of pets: 5
The number of groups: 3
Comments
Leave a comment