Even Odd Number

Even Odd Number

Welcome to the World of Online Learning:

Hello Friends “This blog helps you to learn C programming concepts. You can learn C language at your own speed and time. One can learn concepts of C language by practicing various programs given on various pages of this blog. Enjoy the power of Self-learning using the Internet.”

Even Odd Number
Even Odd Number

Write a C program to Even Odd Number

PROGRAM: Even Odd Number

/* Check a number is even or odd */

#include<stdio.h>
int main()
{
    int a;
    printf(“Enter a number: “);
    scanf(“%d”,&a);
    if(a%2==0)
        printf(“Even Number”);
    else
        printf(“Odd Number”);
   return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *