C language determines whether a number is odd or even

C language determines whether a number is odd or even
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char const *argv[]) {
    int num;
    printf("Enter an integer: ");
    scanf("%d", &num);
    
    if(num % 2 == 0)
        printf("%d  is even.", num);
    else
        printf("%d is odd.", num);
    
    return 0;
}
Source:ww‮tual.w‬turi.com
Created Time:2017-08-29 09:37:16  Author:lautturi