Josif_tepe

Untitled

Jan 11th, 2026
30
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.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.    int n;
  8.    cin >> n;
  9.  
  10.    if (n%4==0){
  11.     cout << "0" <<endl;
  12.    }
  13.    else {
  14.     cout << (4-(n%4))*9 <<endl;
  15.    }
  16.     return 0;
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment