Factorial in Lua
1 | function factorial(n) |
output:
1 | 0! = 1 |
1 | -- function closures are powerful |
Factorial in Bash
1 | f=1 |
1 | factorial () |
Factorial in Python
1 | def factorial(n): |
Factorial in Dart
1 | main() { |
Factorial in Java
1 | public class Factorial { |
Factorial in PHP
1 |
|
Factorial in Objective-C
1 |
|
Factorial in C
1 |
|
1 |
|
1 | /* Example Program For Find Factorial Number In C Programming Language |