Skip to main content
deleted 1 characters in body
Source Link
JPvdMerwe
  • 3k
  • 1
  • 19
  • 17

Python - 7675

n=input() g=1 while n: g*=n while g%10==0g%10<1:g/=10 g%=10**9 n-=1 print g%10 

Python - 76

n=input() g=1 while n: g*=n while g%10==0:g/=10 g%=10**9 n-=1 print g%10 

Python - 75

n=input() g=1 while n: g*=n while g%10<1:g/=10 g%=10**9 n-=1 print g%10 
edited body; deleted 1 characters in body
Source Link
JPvdMerwe
  • 3k
  • 1
  • 19
  • 17

Python - 76

n=input() g=1 while n: g*=lg*=n while not g%10g%10==0:g/=10 g%=10**9 n-=1 print g%10 

Python - 76

n=input() g=1 while n: g*=l while not g%10:g/=10 g%=10**9 n-=1 print g%10 

Python - 76

n=input() g=1 while n: g*=n while g%10==0:g/=10 g%=10**9 n-=1 print g%10 
Source Link
JPvdMerwe
  • 3k
  • 1
  • 19
  • 17

Python - 76

n=input() g=1 while n: g*=l while not g%10:g/=10 g%=10**9 n-=1 print g%10