123456789101112
k = 2; do { sum = sum + (2 * k); if(sum > 100) { cout << "exceeded 100"; } k += 3; } while(k < 20);