#include<stdio.h> int main(){int n, a[]={6,8,4,2}; scanf("%d",&n); if(n) printf("\n%d",a[n%4]); else printf("\n1"); return 0; }
#include<stdio.h> int main(){int n, a[]={6,8,4,2}; scanf("%d",&n); if(n) printf("\n%d",a[n%4]); else printf("\n1"); return 0; }
#include<stdio.h> int main(){int n, a[]={6,8,4,2}; scanf("%d",&n); if(n) printf("\n%d",a[n%4]); else printf("\n1"); return 0; }
We would love to hear from you! Please fill in your details and we will stay in touch. It's that simple!
© tagDiv | All rights reserved | Made with Newspaper Theme

