Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
C Programs
/ Check for Even Odd Number C porgram
Program
Click to the Copy Program
#include
void main() { int n; printf("Enter a Number: "); scanf("%d", &n); if(n % 2 == 0) printf("Number = %d is even.", n); else printf("Number = %d is odd.", n); }
Input
Enter a Number: 10
Output
Number = 10 is even.
Home
Back