<html>
<head><title>Check palindrim or not</title>
<script language="javascript">
var no,rem,sum=0,temp;
no=prompt("Enter the no from user for check"," ");
temp=no;
while(no>0)
{
rem=no%10;
sum=sum*10+rem;
no=no/10;
}
if(temp==sum)
document.write("The given no is palindrom");
else
document.write("The given no is not palindrom")
</script>
<body>
</body>
</html>
You don't have to write palindrome programs in wikipedia.
what ever you assume
Comments are non-executable statements within JavaScript (or any other programming.) In JavaScript, comments are surrounded by /* and */ for multi-line comments, or started with // for single line comments.
There isn't much to it:---alert("Hello " + "world!");---'alert' creates a popup, and the + does string concatenation.See related link for a Javascript tutorial.
The generation of palindromic numbers within a given range is best done with a computer program. Space it limited so an example of program code cannot be shown here, but the Codecast website gives full guidance.
Palindrome numbers are numbers that read the same backwards and forwards, like 32923
10+1=11 (which is a palindrome)
You don't have to write palindrome programs in wikipedia.
Probably a misspelling of palindrome numbers.
please somebody should help me answer this question..I have a project on it even! It seems almost impossible at the moment.
Yes.
23932
hi darling
There are a number of ways in which one can learn how to program the JavaScript confirm dialog box into their code. One way is by reading the relevant tutorials on the website JavaScript Kit.
George Pickering has written: 'JavaScript how-to' -- subject(s): JavaScript (Computer program language)
You can do this: <?php if ( $word === strrev( $word ) ) { echo "The word is a palindrome"; } else { echo "The word is not a palindrome"; }
stats