+ 2
Please tell me how the first project in the C ++ course is being solved, I'm new to programming, so I don't understand what need
C++ project first help me please.
2 odpowiedzi
+ 3
The first project in C++ course is of Transportation. All you have to do is find the number of empty seats the last bus will have. You can do something like this in your 'main' function:
int main(){
int numOfPassengers, emptySeatsLeft;
cin >> numOfPassengers;
emptySeatsLeft = 50 - (numOfPassengers % 50);
cout << emptySeatsLeft ;
return 0;
}
0
Thank you very much, I knew that I needed to use user input and carry out some operations with it, but I didn’t know how to correctly implement the code, so I asked for help. Thanks again