魈凯KBS • 5个月前
using namespace std;
int main() {
int a,b,cnt=0;
cin>>a;
while(a!=0)
{
cnt+=a; cin>>a;
}
cout<<cnt<<endl;
return 0;
Comments: