Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int n;
  7.     cin >> n;
  8.  
  9.     if(n % 20 >= 10) cout << 20 - n % 20 << endl;
  10.     else cout << n % 20 << endl;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement