int i=0, j=0; while (i < 1000) { j = 0; while (j < i) { j = j + 1; } i = i + 1; }