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

What is the best ide for javascript development?

473


Is a function an object?

499


What is the default data type in javascript?

502


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

459


How to import all exports of a file as an object.

509






What is whitespace in javascript?

462


How to set a html document's background color?

547


How do I turn on javascript?

430


What does break and continue statements do in javascript?

525


Is it possible to use javascript to change the meta-tags of the page?

545


What is a function callback?

545


How can you do a character count in javascript?

477


What are javascript objects?

481


What is the real name of JavaScript?

561


What is dhtml in javascript?

493