+ 7

Can anyone help me solve that's odd code coach problem by modifying my code.

#include<stdio.h> int main() { int N,numl[100],i,odd=0; scanf("%d",&N); for(i=1;i<=N;i++) { scanf("%d",&numl[i]); } if(numl[i] % 2 == 0) { printf("%d",numl[i]); } else { printf("%d",odd); } return 0; }

12th Jun 2020, 8:30 PM
Varun N
Varun N - avatar
1 Odpowiedź