can anyone please help me for c++ 12th problem 'Transportation'? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

can anyone please help me for c++ 12th problem 'Transportation'?

6th Apr 2021, 8:27 AM
Tanmay Khadse
Tanmay Khadse - avatar
7 Answers
+ 3
Please post your attempt first
6th Apr 2021, 8:39 AM
Atul [Inactive]
+ 3
Ok let's take the example given that is 126. So 126%50=26,therefore passesngers in last bus =50-26=24
6th Apr 2021, 8:48 AM
Atul [Inactive]
+ 3
Hope this helps you
6th Apr 2021, 8:48 AM
Atul [Inactive]
6th Apr 2021, 9:01 AM
Tanmay Khadse
Tanmay Khadse - avatar
+ 2
Hi! you need to take out of the total number of passengers who are standing at the stop the number that can take away full buses of 50 people. we don't count these buses. it is important for us to take away the number of full buses. then, from the remaining number of passengers (which is less than 50), we need to find out how many empty seats there will be in the last bus
6th Apr 2021, 8:59 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
My pleasure
6th Apr 2021, 9:10 AM
Atul [Inactive]
+ 1
I am not understanding that question.
6th Apr 2021, 8:41 AM
Tanmay Khadse
Tanmay Khadse - avatar