Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int n;
- cin >> n;
- if(n % 20 >= 10) cout << 20 - n % 20 << endl;
- else cout << n % 20 << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement