int i=9; int sum=0; while (i > 0) { sum += i; i--; } //sum=45
int i=9; int sum=0; do { sum += i; i--; } while (i > 0); //sum=45 //------------------------------------- int i=9; int sum=0; do { sum += i; i--; } while (i < 0); //sum=9
int i=9; int sum=0; while (i > 0) { if (i==5) continue; sum += i; i--; } //sum=40 //------------------------------------- i=9; sum=0; while (i > 0) { if (i==5) break; sum += i; i--; } //sum=10