(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10) 怎样编程?#include main(){int i=1;float s1=0,s2=0,s3=0;float j,sum;sum=s1+s2+s3;for(i=1;i

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/04 01:10:56
(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10)怎样编程?#includemain(){inti=1;floats1=0,s2=0,s3=0

(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10) 怎样编程?#include main(){int i=1;float s1=0,s2=0,s3=0;float j,sum;sum=s1+s2+s3;for(i=1;i
(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10) 怎样编程?
#include
main()
{
int i=1;
float s1=0,s2=0,s3=0;
float j,sum;
sum=s1+s2+s3;
for(i=1;i

(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10) 怎样编程?#include main(){int i=1;float s1=0,s2=0,s3=0;float j,sum;sum=s1+s2+s3;for(i=1;i
将 sum=s1+s2+s3; 放在printf("sum=%f\n",sum); 之前 你试下程序还是好久前学的