int s=0;
for (int k = 1; k <= 100; k++) {
for (int n = 1; n <= 100; n++) {
s+=(n - k + 1) / (n + k);
}
}
public class Main {
public static void main(String... args) {
double sum = 0;
for (int k = 1; k <= 100; k++) {
for (int n = 1; n <= 100; n++) {
sum += 1.0 * (n - k + 1) / (n + k);
}
}
System.out.println("sum = " + sum);
}
}