Yes, it was getting reset to 0, I should have used variable check, where I am storing the value to print.
Here is the one which will return the result with values.
int num[] = {121, 13,...
Type: Posts; User: vivekbansal
Yes, it was getting reset to 0, I should have used variable check, where I am storing the value to print.
Here is the one which will return the result with values.
int num[] = {121, 13,...
Here is the code that would find out the palindrome number. You need not take another String array if you don't want to use it outside the loop.
int num[] = {121, 13, 34, 11, 22, 54};
...