标签:return print rgba lld bsp nbsp sum int +=
1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 long long int jiecheng(int a); 6 long long int sum=jiecheng(20); 7 printf("%lld",sum); 8 return 0; 9 } 10 long long int jiecheng(int n) 11 { 12 long long int sum,a; 13 sum=1; a=1; 14 15 16 for(int i=1;i<=n;i++) 17 { 18 a*=i; 19 sum+=a; 20 21 } 22 return sum;//返回sum值 23 24 }
标签:return print rgba lld bsp nbsp sum int +=
原文地址:https://www.cnblogs.com/1ybs/p/14440300.html