#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int n,i=1,fact=1;
do
{
printf("input n(n>0):%d\n",n
); }
while(n<=0);
do
fact*=i++;
while (i <= n);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KaW50IG1haW4odm9pZCkgCnsKCWludCBuLGk9MSxmYWN0PTE7CgkKCWRvCgl7CgkJc2NhbmYoIiVkIiwmbik7CgkJcHJpbnRmKCJpbnB1dCBuKG4+MCk6JWRcbiIsbik7Cgl9Cgl3aGlsZShuPD0wKTsKCQoJZG8KCQlmYWN0Kj1pKys7Cgl3aGlsZSAoaSA8PSBuKTsKCXByaW50ZigiJWQhPSVkXG4iLG4sZmFjdCk7CgkKCXJldHVybiAwOwp9Cg==