JAVA:计算1+1/2+2/3+3/4+…+99/100。 int z=1; int m=2; int s=1; for(;z<=99;z++) { for(;m<=100;m++){ s+=z/m; } }System.out.println(s);