0

To Check Given Number is even or odd

Remarks:- Here I am using Dev C++ IDE  v5.11, I am writing code over this IDE. Please make sure your version before running my code over your machine .

Write a program to check number is even or add.

 

#include<stdio.h>

main()

{

           

            int number;

            printf(“Enter the number to check even or odd”);

            scanf(“%d”,&number);

            if(number%2==0)

            {

            printf(“Entered Number is Even”);    

                       

            }

            else

           

            {

                       

                        printf(“Entered Number is Odd”);

            }

}

Admin

Leave a Reply

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