0
Anyone answer this question
We need to distribute textbooks to students. There are 37 pupils in the class and each one should get 2 textbooks. The total number of books available for distribution is 76. Task Write a program to calculate and output how many books will be left after the distribution. Hint You just need to find the remainder from dividing 76 and total number of needed books (37*2), then print the result.Using the module operator(%).
1 Answer
+ 1
https://code.sololearn.com/cUaB0NKwT0GE/?ref=app
solution is specifically for this question only if you want to take number of books as input then it will be like this
a = int(input("enter the total number of people" ))
b = int (input("enter the number of books"))
C = b- (a*2)
print(C)