HRMlblCMFqqInfU78c3NMJxDetM02ycHTU9BqBl9

C Program to Check Odd Even Number

C Program to Check Odd Even Number

Test Case

Test #1
Input Number : 5
5 is an Odd Number.

Test #2
Input Number : 10
10 is an Even Number.

Source Code

#include <stdio.h>
//visit us @hobingoding.com

int main(){
    int number;
    printf("Input Number : ");
    scanf("%d", &number);
    if(number%2==0)
        printf("%d is an Even Number.", number);
    else
        printf("%d is an Odd Number.", number);
    return 0;
}
Related Posts
Newer Oldest
Fandi Presly Simamora
Do it right, be bright.

Related Posts

Post a Comment