palindrome() { var rem, temp, final, n; n = 323; final = 0; temp = n; while (n > 0) { rem = n % 10; n = (n - rem) / 10; final = final * 10 + rem; } if (final == temp){ println "The number is palindrome."; } else{ println "The number is not palindrome."; } }