Skip to main content
added 53 characters in body
Source Link
Cyoce
  • 3.4k
  • 26
  • 29

PlatyPar, 48 bytes

c?1,_p_p\1 

Try it onlineTry it online!

Explanation (pretty simple):

c? ## if (n != 0) 1,__p  ## rangeproduct [1..n] p  \ ## productelse 1 ## 1 

PlatyPar, 4 bytes

1,_p 

Try it online!

Explanation (pretty simple):

1,_ ## range [1..n] p ## product 

PlatyPar, 8 bytes

c?1,_p\1 

Try it online!

Explanation:

c? ## if (n != 0) 1,_p  ## product [1..n]   \ ## else 1 ## 1 
Source Link
Cyoce
  • 3.4k
  • 26
  • 29

PlatyPar, 4 bytes

1,_p 

Try it online!

Explanation (pretty simple):

1,_ ## range [1..n] p ## product