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

Answer Posted / sharma v

num=InputBox ("Enter a number")
z=num
r=0
While(num>0)
rem1=num mod 10
num=num\10
r=(r*10) + rem1

Wend

If (r=z)Then
Msgbox "Given no is palindrome"
else
Msgbox "Given no. is not palindrome"

End If

Is This Answer Correct ?    23 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to disable an html object ?

555


How do I enable cookies and javascript?

486


Explain arrow functions?

496


How to create a confirmation box?

535


List the comparison operators supported by javascript?

513






How do I enable cookies safari?

474


How do I open javascript in browser?

457


What is the importance of javascript? Expalin

523


What does the operator do in javascript?

467


What is a function object?

478


Are you concerned that older browsers don't support javascript and thus exclude a set of web users? Individual users?

582


Which javascript is best?

507


Explain how to detect the operating system on the client machine?

490


How to change the background color of HTML document using JavaScript?

536


What are the different functional component in javascript?

454