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

List some of the advantages of javascript.

1621


What do you mean by ide?

826


What is the difference between typeof and instanceof operators in Javascript?

1172


Entire content of a JavaScript source file in a function block?

1079


How to create array in JavaScript?

1127


What are the limitations of javascript?

951


Public Static Void Main(String args[]) { System.out.in("Hai.."); } In the above code why string args[] is required.... If we are not giving command line argument..

2041


What is the function of javascript?

964


What is difference between scripting and programming?

915


In Javascript are calculations with fractional numbers guaranteed to be precise?

1079


What is decodeuri() in javascript?

1029


What is the use of spread operator?

982


Describe negative infinity in javascript?

990


what is flux in javascript?

1050


What does it mean in javascript?

1102