generate functionThu, 18 May 2023

crea una función en js llamada "next_pal()"

function next_pal(n) { var palindrome = n; while (true) { palindrome++; if (palindrome == parseInt(palindrome.toString().split('').reverse().join(''))) { return palindrome; } } }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant