Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program to check whether a given number is a
palindrome or not?

Answer Posted / riddhi

<html>
<head>
<script language="Javascript">
var a;
</script>
<title> Number Palindrom </title>
</head>
<body>
<script Language="Javascript">
var rno=0;
var r=0;
var no = prompt("Enter First no: ","10");
var ono = parseInt(no);
while (no>0)
{
r = parseInt(no%10);
rno = parseInt((rno*10)+r);
no = parseInt(no/10);
}
document.write(rno);
if(rno == ono)
{
document.write(ono+" is palindrom number..");
}
else
{
document.write(ono +" is not palindrom number..");
}
</script>
</body>
</html>

Is This Answer Correct ?    72 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is html and javascript the same?

826


Is javascript enabled on my computer?

857


What are different types of scope chain available in javascript?

818


What are the decodeURI() and encodeURI()?

990


How to get the primitive value of a string in Javascript?

982


What are the various functional components in javascript?

892


What is undefined x 1 in JavaScript?

943


Which built-in method returns the characters in a string beginning at the specified location?

974


What are javascript closures?when would you use them?

886


What value does prompt() return if the user clicked the cancel button?

820


What does trim stand for?

898


Explain prototypal/differential inheritance?

1014


How to create an object using javascript?

1053


What does "1"+2+3 evaluate to?

886


What is javascript bom?

992