Skip to main content
2 of 3
added 175 characters in body
Steadybox
  • 16.5k
  • 5
  • 41
  • 84

C (gcc), 14 13 bytes

f(n){n=n?:1;}

Try it online!

C, 17 bytes

f(n){return!n+n;}

Try it online!

C, 16 bytes

#define f(n)!n+n

Try it online!

Steadybox
  • 16.5k
  • 5
  • 41
  • 84