+ 1
How do I get transportation done is it like multiple answers cuz I got the first right but idk ?
I'm using C++ btw
4 odpowiedzi
+ 3
Can we see the code please?
+ 3
Tsim
You should take the values of a and b from user input and do what they asked in the problem statement. Read the problem statement clearly and make your logic. If you are still stuck you can post your doubt here.
+ 1
Tsim
This is Hard Code logic. Write generic code which can satisfy all test cases.
Take user input and use modulus operator (%) to get left seats.
https://www.sololearn.com/discuss/2727130/?ref=app
https://www.sololearn.com/discuss/2613345/?ref=app
https://www.sololearn.com/discuss/2649903/?ref=app
https://www.sololearn.com/discuss/2702483/?ref=app
https://www.sololearn.com/discuss/2598492/?ref=app
0
#include <iostream>
using namespace std;
int main() {
//your code goes here
int a = 126;
int b = 50;
cout << a-b-26-12;
return 0;
}