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


    printf("%d",cj);
    return 0;
}

计算N!

相关文章:

  • 2021-11-17
  • 2022-12-23
  • 2022-02-12
  • 2021-10-04
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-20
  • 2021-09-23
  • 2022-01-17
  • 2021-08-12
  • 2021-08-30
  • 2022-12-23
相关资源
相似解决方案