I took a UIL test this weekend, and I don't understand this problem:
What is output by //2 in the code to the right? The answer is 540,280, but I'd like to know why.
int ct1 = 0;
int ct2 = 1;
for(int i=0; i<1040;i++){
for(int j=i; j<0; j--){
ct1++;
}
ct2++;
}
System.out.println(ct2);
System.out.println(ct1); //2