Advertisement
Josif_tepe

Untitled

Jan 23rd, 2024
864
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.     int x;
  6.     cin >> x;
  7.    
  8.     if(x % 4 == 0) {
  9.         cout << 0 << endl;
  10.     }
  11.     else {
  12.         cout << (4 - (x % 4)) * 9 << endl;
  13.     }
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement