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
How to write hello world on the web page?
Is there any class in javascript?
Where do I put javascript in html?
What is difference between deep and shallow object coping in javascript?
How to create a confirmation box?
How can you set position of the page (top and left) to 0 using javascript in one line code?
What is the importance of javascript? Expalin
What are the features of javascript?
What is the difference between null & undefined?
Where do you write javascript?
What javascript method would convert the string “20” to an integer (on the fly) so “20” + 20 = 40?
How to get checkbox status whether it is checked or not?
How do you target a specific frame from a hyperlink?
Give an example of closure?
how to read and write a file using JavaScript?