#include<stdio.h>
int calculafatorial(int num) {
int fat = 1;
while (num > 1) fat *= num--;
return fat;
}
int main(void) {
int num;
printf("%d", calculafatorial
(num
)); }
//https://pt.stackoverflow.com/q/266565/101
I2luY2x1ZGU8c3RkaW8uaD4KCmludCBjYWxjdWxhZmF0b3JpYWwoaW50IG51bSkgewogICAgaW50IGZhdCA9IDE7CiAgICB3aGlsZSAobnVtID4gMSkgZmF0ICo9IG51bS0tOwogICAgcmV0dXJuIGZhdDsKfQoKaW50IG1haW4odm9pZCkgewogICAgaW50IG51bTsKICAgIHNjYW5mKCIlZCIsICZudW0pOwogICAgcHJpbnRmKCIlZCIsIGNhbGN1bGFmYXRvcmlhbChudW0pKTsKfQoKLy9odHRwczovL3B0LnN0YWNrb3ZlcmZsb3cuY29tL3EvMjY2NTY1LzEwMQ==