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
Hindi,
3 months ago
Psychology,
3 months ago
Economy,
3 months ago
Chemistry,
7 months ago
Science,
7 months ago
Math,
11 months ago
Computer Science,
11 months ago