#include int main() { int arr[] = { 1, 9, 3, 9, 9, 2, 9, 3, 3, 3 }; int size = sizeof(arr) / sizeof(arr[0]); std::cout << "Odd numbers: "; for (int i = 0; i < size; i++) { if (arr[i] % 2 != 0) { std::cout << arr[i] << " "; } } std::cout << "\nEven numbers: "; for (int i = 0; i < size; i++) { if (arr[i] % 2 == 0) { std::cout << arr[i] << " "; } } std::cout << std::endl; return 0; }