Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string a;
- getline(cin, a);
- char x, y;
- if (a.size() > 1)
- x = a[a.size() - 2];
- else
- x = 0;
- y = a[a.size() - 1];
- int num = x * 10 + y;
- if (num % 4 == 0)
- cout << 4 << endl;
- else
- cout << 0 << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement