首页 > 代码库 > 题目552-小数阶乘-nyoj20140811

题目552-小数阶乘-nyoj20140811

#include <stdio.h>
int main()
{
    int m;
    while(scanf("%d",&m)!=EOF)
    {
        int sum,i;
        sum=1;
        for(i=1;i<=m;i++)
        sum=sum*i;
        printf("%d\n",sum);
        }
        return 0;
    }