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

18th May 2021, 11:43 AM
RAESEN
RAESEN - avatar
1 Answer
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
18th May 2021, 12:13 PM
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż
äœ çŸ„é“èŠć‰‡ïŒŒæˆ‘äčŸæ˜Ż - avatar