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
2 Antworten
+ 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;
}
0
Thx