class forDemo2{public static void main(String[] args) {int sumint i=2while(i!=1001){sum = 0 每卖卜次循环sum重新赋