Advertisement
Josif_tepe

Untitled

Feb 15th, 2021
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int n,a,b=0,c=0;
  6.     cin>>n;
  7.     if(n%4==0)
  8.     {
  9.         cout<<"0";
  10.         return 0;
  11.     }
  12.     b=4-(n%4);
  13.         b*=9;
  14.         cout<<b;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement