0

Help in level 11 in C++ course

So .I start C++ course and I am at level 11 and they want the bus station cod and I didn't get it so well so can u help me please and give me the cod I just want to see the answer. Thx

2nd Jun 2022, 4:18 PM
Monib Nasr
Monib Nasr - avatar
2 Answers
+ 1
you need to use modulo operator #include <iostream> int main() { //your code goes here int input; std::cin >> input; std::cout << 50-input%50 << std::endl; return 0; }
2nd Jun 2022, 4:37 PM
Vinit Sonawane
Vinit Sonawane - avatar
0
Thx
3rd Jun 2022, 3:55 PM
Monib Nasr
Monib Nasr - avatar