C语言代码求帮忙,谢谢大佬
#include<stdio.h>intmain(){intn;scanf("%d",&n);printf("sum(%d)=%f",n,fsum(n));return0...
#include <stdio.h>
int main(){
int n;
scanf("%d",&n);
printf("sum(%d)=%f",n,fsum(n));
return 0;
}
long fact(int n){
long t=1;
int i;
for(i=1;i<=n;i++)t*=i;
return t;
}
float fsum(int n){
} 展开
int main(){
int n;
scanf("%d",&n);
printf("sum(%d)=%f",n,fsum(n));
return 0;
}
long fact(int n){
long t=1;
int i;
for(i=1;i<=n;i++)t*=i;
return t;
}
float fsum(int n){
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询