0

anyone can solve this code in cpp

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.

8th Sep 2021, 11:57 AM
Ebrahim Lotfy
Ebrahim Lotfy - avatar
4 odpowiedzi
+ 3
Bro Ibrahim Lotfy , you marked my answer as best but then you unmarked. Can you state please why did you unmarked?
8th Sep 2021, 12:49 PM
Saurabh
Saurabh - avatar
+ 2
Hey Ibrahim Lotfy Look into it, if u got any problem in understanding the code then let me know https://code.sololearn.com/cQQ7X0fy7fwd/?ref=app
8th Sep 2021, 12:15 PM
Saurabh
Saurabh - avatar
0
its okay I understood you
8th Sep 2021, 5:24 PM
Ebrahim Lotfy
Ebrahim Lotfy - avatar
0
No problem
8th Sep 2021, 5:39 PM
Ebrahim Lotfy
Ebrahim Lotfy - avatar