Skip to main content
added 53 characters in body
Source Link
bigyihsuan
  • 10.8k
  • 1
  • 23
  • 66

Go, 5353 51 bytes

func f(n int)int{p,i:=1,0
for;i<n;i++{p*=n}
return p}

Attempt This Online!Attempt This Online!

  • -2 by @The Thonnu: anonymous function

Go, 53 bytes

func f(n int)int{p,i:=1,0
for;i<n;i++{p*=n}
return p}

Attempt This Online!

Go, 53 51 bytes

func(n int)int{p,i:=1,0
for;i<n;i++{p*=n}
return p}

Attempt This Online!

  • -2 by @The Thonnu: anonymous function
Source Link
bigyihsuan
  • 10.8k
  • 1
  • 23
  • 66

Go, 53 bytes

func f(n int)int{p,i:=1,0
for;i<n;i++{p*=n}
return p}

Attempt This Online!