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