0
tried dividing n in group of 50s, using if and print the rest, try correcting loop cin>>n;g=n;if(g>>50) {g=n-50; }cout<<g;
Sample ex: 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
1 Respuesta
0
Your question is not clear. Please describe it with more details.
https://www.sololearn.com/discuss/1316935/?ref=app
https://www.sololearn.com/discuss/333866/?ref=app