MCPcopy Create free account
hub / github.com/E869120/math-algorithm-book / main

Function main

codes/cpp/Code_5_02_1.cpp:4–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2using namespace std;
3
4int main() {
5 long long N;
6 cin >> N;
7 if (N % 4 == 1) cout << "2" << endl;
8 if (N % 4 == 2) cout << "4" << endl;
9 if (N % 4 == 3) cout << "8" << endl;
10 if (N % 4 == 0) cout << "6" << endl;
11 return 0;
12}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected