Advertisement
Josif_tepe

Untitled

Jan 28th, 2024
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int x;
  7.     cin >> x;
  8.    
  9.     if(x % 10 == 0) {
  10.         cout << 0 << endl;
  11.     }
  12.     else {
  13.         cout << 10 - (x % 10) << endl;
  14.     }
  15.     return 0;
  16. }
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement