不断输入非负整数,读到负数停止,输出和。
输入若干整数,遇到负数停止。
输出停止前所有非负数之和。
1 2 3 -1
6
输入整数均在 int 范围内。
使用您的 www.mathcoding.online 通用账户