Given an integer, print 0 if its odd, else print 1. in c

My issue

Given an integer, print 0 if its odd, else print 1.

My code

#include <stdio.h>

int main() {
    int num = 15;
    
    //Complete the code
    printf("enter an integer");
    scanf("%d", &num);

    return 0;
}

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