hi coders please can you help me to find the problem in solution this in c++
You are making a program for a bus service. A bus can transport 50 passengers at once. Given the number of passengers waiting in the bus station as input, you need to calculate and output how many empty seats the last bus will have. #include <iostream> using namespace std; Explanation: The 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, having 50-26=24 seats left empty. Hint: The modulo operator % can help to determine the number of passengers for the last bus. #include<iostream> using namespace std; int main() { //your code goes here int x,y,z; cin>>x; y=x%50; z=50%y; cout<<z; return 0; }