#include <iostream>
int main() {
int x = 5;
int y = -6;
int z;
if (x > y) {
z = x + y;
} else {
z = y - x;
}
std::cout << z << std::endl;
system("pause");
return 0;
}
Пиксель
(P.S)
Пишу сюда ещё т.к не менее 20 слов
#include <iostream>
using namespace std;
int main() {
int s, t, res = 0;
cin >> s;
for (int i = 0; i < s; i++) {
cin >> t;
if (t % 10 == 3) res += t;
}
cout << res << endl;
return 0;
}