← All problemsSign in

Odd Sum

You are given an array $A$ of length of $N$. You have to print the sum of all the $odd$ numbers in an array. ###Input: - First line will contain $N$, length of an array. - Next line contains $N$ space seperated integers.. ###Output: Print the sum of odd numbers. ###Constraints - $1 \leq N \leq 1000$ - $2 \leq A[i] \leq 10^5$ ###Sample Input: 5 1 2 3 4 5 ###Sample Ou

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start