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
Social Sciences,
4 months ago
Physics,
4 months ago
Hindi,
4 months ago
Chemistry,
9 months ago
Science,
9 months ago
Math,
1 year ago
Computer Science,
1 year ago