#include #define sqrt(x) (x)*(x)main(){ int i=1; long s=0;if(s<1000){s+=sqrt(i);i++;}printf("n=%d",i);}在vc6.0运行,自己再调试一下吧,望采纳!