Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.14 KB | None | 0 0
  1. // Example program
  2. #include <iostream>
  3.  
  4. int n;
  5. int tab[4]={6, 2, 4, 8};
  6.  
  7. int main()
  8. {
  9.   std::cin >> n;
  10.   std::cout << tab[n%4];
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement