Problem Statement
Write a C program that determines whether a given integer is a palindrome. A palindrome number reads the same backward as forward (e.g., 121, 1331, 7).
Your program should read an integer from standard input and output one of the following messages:
- "PALINDROME" if the number is a palindrome
- "NOT PALINDROME" if the number is not a palindrome
Important Requirements:
- You must use loops only (no recursion)
- You cannot convert the number to a string
- You must handle negative numbers appropriately (negative numbers are not palindromes)
- You must handle the special case of 0 correctly
Examples:
- 121 β PALINDROME
- -121 β NOT PALINDROME
- 123 β NOT PALINDROME
- 0 β PALINDROME
- 1001 β PALINDROME