Advertisement
Guest User

Untitled

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