#include <stdio.h>
int fatorial(int num) {
if (num >= 0) {
int fat = 1;
while (num > 0) {
fat *= num;
num--;
}
return fat;
} else {
return -1;
}
}
int main(void) {
}
//http://pt.stackoverflow.com/q/185600/101
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgZmF0b3JpYWwoaW50IG51bSkgewogICAgaWYgKG51bSA+PSAwKSB7CiAgICAgICAgaW50IGZhdCA9IDE7CiAgICAgICAgd2hpbGUgKG51bSA+IDApIHsKICAgICAgICAgICAgZmF0ICo9IG51bTsKICAgICAgICAgICAgbnVtLS07CiAgICAgICAgfQogICAgICAgIHJldHVybiBmYXQ7CiAgICB9IGVsc2UgewogICAgICAgIHJldHVybiAtMTsKICAgIH0KfQoKaW50IG1haW4odm9pZCkgewoJcHJpbnRmKCIlZFxuIiwgZmF0b3JpYWwoMCkpOwoJcHJpbnRmKCIlZFxuIiwgZmF0b3JpYWwoMSkpOwoJcHJpbnRmKCIlZFxuIiwgZmF0b3JpYWwoNSkpOwoJcHJpbnRmKCIlZFxuIiwgZmF0b3JpYWwoLTUpKTsKfQoKLy9odHRwOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8xODU2MDAvMTAx