include iostream int main int 12 for int 12 cin int sum rizn for int 1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <iostream>
int main() {
int A[12];
for(int i = 0; i < 12; i++)
cin >> A[i];
int sum = 0, rizn = 0;
for(int i = 0; i < 12; i++){
sum += A[i];
rizn -= A[i];
}
cout << "sum = " << sum << "\n";
cout << "rizn = " << rizn << "\n";
return 0;
}