• Breaking News

    Funny Coder

    Funny coder is an open source web for interested programmer. It is a programming environment.It's a way where you can code with fun.

    Friday, April 22, 2016

    Check Even or odd number program in C language




    Check Even or odd number program in C language



    /*
    Name   : C source program --> Check Even or odd number program in C language
    Author : Funny Coder(Maniruzzman Akash)
    It's a free code. You can use it anywhere
    */

    #include<stdio.h>
    int main(){
    int num;
    printf("\nEnter any number : ");
    scanf("%d", &num);

    if(num % 2 == 0){
    printf("\n%d is an even number\n", num);
    }else{
    printf("\n%d is an odd number\n", num);
    }

    return 0;
    }



    Check even or odd
    Fig - Check even or odd












    No comments:

    Post a Comment

    Fashion

    Beauty

    Travel