Apr-11-2020, 12:00 PM
Hello Guys,
I have an arithmetic exercice and I am stuck.
"Your program should read the number of students that can hold a room, then the number of students. Finally, it must display the number of rooms to reserve to hold all the students"
Example
entries :
5
29
output :
6
Here is my code : (nbEleveSalle will receive 5 and nbEleve will receive 29)
I have an arithmetic exercice and I am stuck.
"Your program should read the number of students that can hold a room, then the number of students. Finally, it must display the number of rooms to reserve to hold all the students"
Example
entries :
5
29
output :
6
Here is my code : (nbEleveSalle will receive 5 and nbEleve will receive 29)
nbEleveSalle = int(input()) nbEleve = int(input()) résultat = (nbEleve//nbEleveSalle)+1 print(résultat)The online plateform we use to validate our exercice, tells me this is not correct. Anyone have an idea please ? Thanks a lot