ans

DOZIE 2022-07-10 14:14:33 9 返回题目

#include using namespace std; int main() { int i, n, x, sum = 0; cin >> n; i = 1; while (i <= n) { cin >> x; sum = sum + x; i = i + 1; } cout << sum; return 0; }

{{ vote && vote.total.up }}