serve the magic potion in equal quantity. get as input quantity and number of people to be served. write the python code pls answer
Answers
Answered by
2
Code:-
a = int (input ("Enter the quantity of the magic potion in litres")
b = int (input ("Enter the quantitiy of magic potion for one person")
If (a%b == 0) :
print (a/b, "Is the number of people to be served")
else:
print ("Can't be distributed")
Similar questions