+ 2

Plss can anyone help me with this 😥

You are making a program for a bus service. A bus can transport 50 passengers at once. Given the number of passengers waiting in the bus station as input, you need to calculate and output how many empty seats the last bus will have. Sample Input: 126 Sample Output: 24 Explanation: The first bus will transport 50 passengers, leaving 126-50=76 in the station. The next one will leave 26 in the station, thus, the last bus will take all of the 26 passengers, having 50-26=24 seats left empty

5th Nov 2022, 2:32 PM
Prevail Richard
Prevail Richard - avatar
2 Respuestas
+ 13
Prevail Richard , can you please update your post with the following: > we need to know what programming language you are going to use > we wanted to see the code attempt that you have done. please save it in playground and add the link to it here.
5th Nov 2022, 3:04 PM
Lothar
Lothar - avatar
+ 3
Prevail Richard the Q&A search feature will reveal lots of discussion on the Transportation exercise. It might give you quicker answers.
5th Nov 2022, 11:21 PM
Brian
Brian - avatar