SillyCodes : C program to check given Number is Even or Odd

Spread the love

Description:

This program accepts one Integer value from user and checks if the given number is Even number or Odd number.

Program :

  1. #include<stdio.h>
  2. int main()
  3. {
  4.         int num,rem;
  5.         printf(“Enter any Integer : “);
  6.         scanf(“%d”,&num);
  7.  
  8.         if(num % 2 == 0)
  9.         {
  10.                 printf(“Given Number %d is Even Number n,num);
  11.         }
  12.         else
  13.         {
  14.                 printf(“Given Number %d is odd Number n,num);
  15.         }
  16.         return 0;
  17. }

Output :

More C Programs:

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply