I'm trying to call a function that determine's if a number is odd or not. I know that if the number is divisible by 2, then it's even. I'm new to coding, and this is frustrating. I'm not even sure if I'm posting this in the right place, but any tips would be really helpful. Thank you.
Code:#include <stdio.h> int isodd(intx); main() {int x; x=0; printf("Enter an Integer:"); scanf("%d\n",&x); printf("The number is odd\n",isodd(intx); } int isodd(intx) { int x; if(x%2==0) return 0; else return x; }