Write a C Program to check even or odd number

#include <stdio.h>
/* Program to check even or odd number

Note: A number which is completely divisible
by 2 is an even number otherwise odd number.*/
void main()
{
int x=7;
if(x%2==0){
printf(“The number %d is even number.”,x);
}else{
printf(“The number %d is odd number.”,x);
}
}

 

For Life time valid video tutorials of “C Programming For Beginners” course with quiz and certification : Click Here

Downloadable video tutorials of “C Programming For Beginners” for TTRC Player : Click Here

My Self Subrat Dash. I have completed my MSc in Information Technology. Since last 12 years i am teaching Math and Computer at TTRC Computer Institute situated at Rayagada, Odisha, India. I believe in conceptual learning, so i explain each and every concept with demos and examples, which makes it easier to understand.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

error: Content is protected !!