int main() { const int SIZE = 5; int arr[SIZE]; int sum = 0;
cout << "Enter " << SIZE << " integers: "; for (int i = 0; i < SIZE; i++) { cin >> arr[i]; } for (int i = 0; i < SIZE; i++) { if (arr[i] > 9) { sum += arr[i]; } } cout << "Sum of elements greater than 9: " << sum << endl; return 0;
using namespace std;
int main() {
cout << "Enter " << SIZE << " integers: ";const int SIZE = 5;
int arr[SIZE];
int sum = 0;
for (int i = 0; i < SIZE; i++) {
cin >> arr[i];
}
for (int i = 0; i < SIZE; i++) {
if (arr[i] > 9) {
sum += arr[i];
}
}
cout << "Sum of elements greater than 9: " << sum << endl;
return 0;
}