There are five odd digits in total: and . Each of these digits can occupy any position in an -digit number. Since each of the positions can contain one of the five digits, the total number of good numbers is .
Algorithm implementation
Read the input value of .
scanf("%d",&n);Сompute the number of -digit good numbers in the variable .
res = 1;
for(i = 0; i < n; i++)
res *= 5;Print the answer.
printf("%lld\n",res);