Palindrome or Not using JavaScript
<html> <head> <script> function palin() { var n,r,sum=0,temp; n=Number(document.getElementById(“no_input”).value); temp=n; while(n>0) { r=n%10; sum=sum*10+r; n=parseInt(n/10); } if(sum==temp) { alert("Palindrome Number"; } else { alert("Not Palindrome Number"); } } </script> </head> …
Palindrome or Not using JavaScript Read More