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;
- }
- From the programming, the number can be found out as odd or even.
Output


Conclusion
- Thus, the program has been created.

Shobana JPosted Jul 6, 2016, 7:43 AM
Ahmed Salah : Thank you
Shobana JPosted Jul 6, 2016, 7:42 AM
Thank you sir.I too focusing to give my best .- Santhakumar Munuswamy
Shobana JPosted Jul 6, 2016, 7:41 AM
Thank you Raja Ganapathy Bro
RajaPosted Jul 4, 2016, 12:44 AM
Nice example...
Santhakumar MunuswamyPosted Jul 3, 2016, 11:24 AM
Good Start. I am expecting more posts with detailed contents from you
Ahmed SalahPosted Jul 3, 2016, 8:34 AM
Good example
kalu singh raoPosted Jul 3, 2016, 4:19 AM
Nice...
Vignesh ManiPosted Jul 2, 2016, 11:51 AM
Nice one