TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How To Find Odd And Even Number
Shobana J
Jul 02, 2016
3.6
k
0
3
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
In this blog, you will learn how to find the odd or even number.
Introduction
In this blog, I have explained about how to find out if a number is odd or even.
Software Requirements
Turbo C++ OR C
Programming
#include <stdio.h>
int
main()
{
int
n;
printf(
"Enter an integer\n"
);
scanf(
"%d"
, &n);
if
(n%2 == 0)
printf(
"Even\n"
);
else
printf(
"Odd\n"
);
return
0;
}
Explanation
From the programming, the number can be found out as odd or even.
Output
Conclusion
Thus, the program has been created.
odd or even number
C
Next Recommended Reading
Finding Area Of Circle In C Programming