Tech Programs

Sunday, 3 May 2015

odd or even in c program

Program


#include<stdio.h>  

int main()

{

int a;

printf("Enter the number:");

scanf("%d",&a);

if(a%2==0)     // Here a value equal to Zero.

{
   printf("The value is even");
}
else 
{
   printf("The Number is Odd");  
}
}

Output

Enter the number:4
the value is even.

Enter the another is :3
the value is odd.
Posted by Unknown at 00:01
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2015 (61)
    • ►  October (1)
    • ►  September (2)
    • ►  August (9)
    • ►  July (10)
    • ►  June (19)
    • ▼  May (19)
      • what is html basic information
      • How To Approve Adsense Simple Way
      • What is C History Of C Programming Language
      • blogger Keywords Description Robots for seo
      • Hard disks Security Lock Without Using Software
      • Mobile Friendly Test for seo
      • Addition Digits in c program language
      • leap year check in c program languages
      • check Vowel in c program
      • if else in c Programming Language
      • Division in c program
      • Subtract in c Program
      • multiplication in c program
      • odd or even in c program
      • Addition Program in c language
      • scanf program in c
      • printf In c
      • char string in c program
      • Hello world program in c
    • ►  April (1)
Simple theme. Powered by Blogger.