#include <stdio.h>
unsigned long int fat(unsigned int n) {
int fatorial = 1;
for (int i = 1; i <= n; i++) fatorial *= i;
return fatorial;
}
int main() {
int numero;
printf("%d! = %ld", numero
, fat
(numero
)); }
//https://pt.stackoverflow.com/q/330965/101
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp1bnNpZ25lZCBsb25nIGludCBmYXQodW5zaWduZWQgaW50IG4pIHsKICAgIGludCBmYXRvcmlhbCA9IDE7CiAgICBmb3IgKGludCBpID0gMTsgaSA8PSBuOyBpKyspIGZhdG9yaWFsICo9IGk7CiAgICByZXR1cm4gZmF0b3JpYWw7Cn0KCmludCBtYWluKCkgewogICAgaW50IG51bWVybzsKICAgIHNjYW5mKCIlZCIsICZudW1lcm8pOwogICAgcHJpbnRmKCIlZCEgPSAgJWxkIiwgbnVtZXJvLCBmYXQobnVtZXJvKSk7Cn0KCi8vaHR0cHM6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzMzMDk2NS8xMDE=