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!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
- 3

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

Who has solved this?

6th Oct 2021, 3:26 PM
Msua Mathias Terhemen
Msua Mathias Terhemen - avatar
3 Respostas
0
Thanks
6th Oct 2021, 3:43 PM
Msua Mathias Terhemen
Msua Mathias Terhemen - avatar
0
Its a very simple algorithm. x = numofpassengers. While x is not negative, subtract 50. Return x when it is negative
6th Oct 2021, 8:40 PM
Jibraeel Abdelwahhab
Jibraeel Abdelwahhab - avatar