package my;
public class lx7 {
public static void main(String[] args) {
double i,sum=0;
for(i=1;i<=97;i+=2){
sum=sum+i/(i+2);
}
System.out.println(sum);
}
}
与
package my;
public class lx6 {
public static void main(String[] args){
double sum=0;
for(int i=1;i<=5;i+=2){
for(int j=3;j<=7;j+=2)
sum=sum+i/j;
}
System.out.print(sum);
}
}