fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. long long m;
  6. cin >> m;
  7. m = m % 10;
  8. cout << 10 - m << '\n';
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
8