0
How do you solve two problem in one on transportation? (C++)
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.
0
std::cin
0
https://www.sololearn.com/coach/902?ref=app
Can someone help me?