#include #include int main (void) { int i = 1, n = 100, sum = 0; do { sum += i++; } while (i<=n); printf ("%d\n", sum); getch (); /*屏幕暂留*/ return 0;}