View Code of Problem 3696

#include<stdio.h>
void main(){
  int n;
  while(scanf("%d",&n)!=EOF){
    int res;
    for(int i=0;i<n;i++){
      res=(n%10)*(n%10);
    }
    printf("%d\n",res);
  }
}

Double click to view unformatted code.


Back to problem 3696