#include <stdio.h>
int fatorial(int n) {
int resultado = 1;
while (n > 1) resultado *= n--;
return resultado;
}
int main(void) {
int n;
printf("Digite o numero a ser fatorado:\n"); }
//https://pt.stackoverflow.com/q/333871/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgZmF0b3JpYWwoaW50IG4pIHsKICAgIGludCByZXN1bHRhZG8gPSAxOwogICAgd2hpbGUgKG4gPiAxKSByZXN1bHRhZG8gKj0gbi0tOwogICAgcmV0dXJuIHJlc3VsdGFkbzsKfQppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgbjsKICAgIHByaW50ZigiRGlnaXRlIG8gbnVtZXJvIGEgc2VyIGZhdG9yYWRvOlxuIik7CiAgICBzY2FuZigiJWQiLCAmbik7CiAgICBwcmludGYoIiVkIiwgZmF0b3JpYWwobikpOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8zMzM4NzEvMTAx