若变量已正确定义,执行以下程序段,输入0或者负数时,循环结束。
total = 0;
scanf ("%d", &score);
while(score > 0){
total = total + score;
scanf ("%d", &score);
}