标签:ring turn printf return print secure warning str clu
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
int i = 0;
int n = 0;
int a = 0;
int ret = 0;
int num1 = 0;
int ret1 = 1;
int ret2 = 0;
for (n = 1; n <= 10;n++)
{
for (i = 1,ret1 = 1; i <= n; i++)
{
ret1 = ret1 * i;
}
ret2 = ret1 + ret2;
}
printf("%d\n", ret2);
for (a= 1,ret=1; a <=10; a++)
{
ret = ret*a;
num1 = ret + num1;
}
printf("%d\n", num1);
return 0;
}
标签:ring turn printf return print secure warning str clu
原文地址:https://blog.51cto.com/14893161/2517459