main(){int j,k,s,m;for( k=1 ; k < 10; k++ ){s=1; m= k+2;for( j=k; j

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/08 21:51:07
main(){intj,k,s,m;for(k=1;kmain(){intj,k,s,m;for(k=1;kmain(){intj,k,s,m;for(k=1;kintj=0,k,s=0,m;for(

main(){int j,k,s,m;for( k=1 ; k < 10; k++ ){s=1; m= k+2;for( j=k; j
main(){int j,k,s,m;for( k=1 ; k < 10; k++ ){s=1; m= k+2;for( j=k; j

main(){int j,k,s,m;for( k=1 ; k < 10; k++ ){s=1; m= k+2;for( j=k; j
int j = 0, k, s = 0, m;
for (k = 1; k < 10; k++) {
s = 1;
m = k + 2;
for (j = k; j < m; j++, k++) {
s += j;
}
}
System.out.println("s-->" + s);//16
System.out.println("k-->" + k);//10