public class MainClass {
public static void main(String[] argv) {
int j, k;
for (j = 1, k = 2; j + k < 20; j++, k += 2) {
System.out.println("j is " + j + " k is " + k);
}
}
}
j is 1 k is 2
j is 2 k is 4
j is 3 k is 6
j is 4 k is 8
j is 5 k is 10
j is 6 k is 12