Header Ads Widget

Responsive Advertisement

If else condition find out the number is odd || even

 #include<stdio.h>

int main ()

{

    int n;

    printf("Enter the value of n:");

    scanf("%d",&n);

    

    if(n%2==0)

        {

            printf("Even");

        }

    else

        {

            printf("Odd");

        }

    return 0;

}

Post a Comment

0 Comments