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
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int n;
  5. printf("Enter an integer\n");
  6. scanf("%d", &n);
  7. if (n%2 == 0)
  8. printf("Even\n");
  9. else
  10. printf("Odd\n");
  11. return 0;
  12. }
Explanation
  • From the programming, the number can be found out as odd or even.
Output

Output
Conclusion
  • Thus, the program has been created.