Deloitte Interview Question

Write a code to print odd numbers in an array.

Interview Answer

Anonymous

Sep 8, 2023

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