Anyone answer this question | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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(%).

11th Nov 2021, 3:41 AM
Sankar Kumar Pramanik
1 Resposta
+ 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)
11th Nov 2021, 4:39 AM
Pihu ( Not Active )