You are making a program for a bus service. A bus can transport 50 passengers at once. Given the number of passengers waitin | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

You are making a program for a bus service. A bus can transport 50 passengers at once. Given the number of passengers waitin

Please help me solve it in c++ I'm a bit confused

18th Dec 2020, 4:25 PM
Paul Nyarkoh Kobina
Paul Nyarkoh Kobina - avatar
2 Antworten
+ 1
Say you have 45 passengers and 10 waiting You would do Passengers + waiting - capacity Which will leave you 5 waiting it's pretty simple with some if statements.
18th Dec 2020, 4:38 PM
D_Stark
D_Stark - avatar