public class Calc {
public static void main (
String args []) {
int total = 0;
for (int i = 0, j = 10; total > 30;
++i, --j) {
System.out.println(" i = " + i + " :
j = " + j);
total += (i + j);
}
System.out.println("Total " + total);
}
}
Answer : Total is 0
Am I missing something very silly here ?