Palindrome program

This is my code of palindrome and all the test case are failing. can some one help me out

@Legendankit you are only needed to print the required things as output which is either ā€˜true’ or ā€˜false’ in this case, but you are also printing excess lines , such as ā€œEnter a positive numberā€. Also your input format is incorrect , please take the input in an array.

Did not get u …can u explain in briefly

You are printing extra lines on the console which you are not required to,so you will be getting wrong answer as the verdict

If I’m printing extra line den at least I should get the correct answer …but I’m not even getting that.

You should be getting error because even the input format in your code is incorrect.
Question states to input a number n and then take n numbers as input, but you are only taking num as input and I don’t know as to why you are checking if num is a palindrome or not. Instead you have to check if the given array is a palindrome or not

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.