~cpp #include <stdio.h> void main() { int n=1; int sum=0; do { n += 1; sum += n; }while(sum<3000); printf("n=%d, sum=%d", n, sum); }