Deloitte interview question

Write a code to print odd numbers in an array.

Interview Answer

Anonymous

8 Sept 2023

for(auto x : nums) { if(x%2==1) cout<< x << endl; }