C语言的题,(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10)怎么编程?请问下面的编程哪里出错了,#include void main(){int k=1;float i,sum;float s1=0,s3=0,s2=0;do{s1=s1+k;k++;}while (k

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 18:56:45
C语言的题,(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10)怎么编程?请问下面的编程哪里出错了,#includevoidmain(){int

C语言的题,(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10)怎么编程?请问下面的编程哪里出错了,#include void main(){int k=1;float i,sum;float s1=0,s3=0,s2=0;do{s1=s1+k;k++;}while (k
C语言的题,(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10)怎么编程?
请问下面的编程哪里出错了,
#include
void main()
{
int k=1;
float i,sum;
float s1=0,s3=0,s2=0;
do
{
s1=s1+k;
k++;
}
while (k

C语言的题,(1+2+3+……+100)+(1+2^2+3^2+……+50^2)+(1+1/2+1/3+……+1/10)怎么编程?请问下面的编程哪里出错了,#include void main(){int k=1;float i,sum;float s1=0,s3=0,s2=0;do{s1=s1+k;k++;}while (k
#include
void main()
{
int k=1;
float i,sum;
float s1=0,s3=0,s2=0;
do
{
s1=s1+k;
k++;
}
while (k