Help me in solving RCPITCP52 problem

My issue

Help

My code

#include <stdio.h>

int main() {
    int num = 15;
    
    //Complete the code
    num%2!==0?0:1;
    printf("%d",num);

    return 0;
}

Learning course: Learn C Programming
Problem Link: https://www.codechef.com/learn/course/rcpit-programming-c/RCPITLPC08/problems/RCPITCP52

#include <stdio.h>

int main() {
    int num = 15;
    
    //Complete the code
    if (num % 2 != 0)
    printf("0");
    else
    printf("1");


    return 0;
}