0
Why doesnt it work?
#include <iostream> using namespace std; int main() { //ваш код int passengers; cin >> passengers; int bus; cin >> bus; int lastBus = passengers % bus; int emptySlots = bus - lastBus; cout << emptySeats << endl; return 0; }
6 Réponses
+ 2
The the var bus would be a constant with value 50... Anyway, why you saying that dont works?
+ 2
What your code would do? Explain
+ 2
Thank you! It helped me
0
Ok
You have a number of passengers, who are on a bus stop. One bus can take just 50 passengers.
You need to find how many empty seats will be in the last bus?
0
👍🏻
0
Amazing