#include using namespace std; int n = 10; //int mang[10] = {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4}; int mang[10] = {-6, -4, -2, -2, -6, 0, 4, 2, 4, 4}; bool check_ok = false; int tong_le(int i) { if (i == n) return 0; if (mang[i] % 2 != 0) { check_ok = true; return mang[i] + tong_le(i + 1); } return tong_le(i + 1); } int main() { int ketQua = tong_le(0); if (check_ok) { cout << "Ket qua: " << ketQua; } else { cout << "Day khong co so le"; } return 0; }