This is my code of palindrome and all the test case are failing. can some one help me out
Palindrome program
@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.