0

How do you solve two problem in one on transportation? (C++)

3rd Feb 2021, 10:25 PM
Eunice
3 Respuestas
+ 1
Please show us your attempt so far so we may help. Here are some hints: Hints: --> You can first use the modulus operator (%) to know how many people are there in the LAST BUS Example of % operator: 102 % 50 == 2 // we got 2 which is the remainder of the result --> You can use subraction (-) to calculate the number of FREE SEATS in the LAST BUS - - - - - - - - - - - - - - - - - - - Note that in the problem the expected output is the NUMBER OF FREE SEATS IN THE LAST BUS.
4th Feb 2021, 1:32 AM
noteve
noteve - avatar
0
std::cin
3rd Feb 2021, 11:12 PM
Maher Al Dayekh
Maher Al Dayekh - avatar
4th Feb 2021, 1:36 AM
Eunice