Advertisement
Josif_tepe

Untitled

Feb 10th, 2021
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int n;
  6.     cin >> n;
  7.     int prv_slucaj = n;
  8.     int vtor_slucaj = n + 1;
  9.     int tret_slucaj = n + 2;
  10.     int cetvrti_slucaj = n + 3;
  11.     if(prv_slucaj % 4 == 0) {
  12.         cout << 9 * 0 << endl;
  13.     }
  14.     else if(vtor_slucaj % 4 == 0) {
  15.         cout << 9 * 1<< endl;
  16.     }
  17.     else if(tret_slucaj % 4 == 0) {
  18.         cout << 9 * 2 << endl;
  19.     }
  20.     else {
  21.         cout << 9 * 3 << endl;
  22.     }
  23.     return 0;
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement