#include<stdio.h> int main() { int a,s=0; do{ scanf("%d",&a); s+=a; }while(a!=0); printf("%d",s); return 0; }
觉得有用的话采纳一下哈