Tuesday, May 18, 2010

Script to reverse a number in vbscript

num=inputbox("Enter a number")
result=0
While num>0
digit=num mod 10
num=int(num/10)
result=result*10+digit
Wend
msgbox result

1 comment:

sree said...

It's very helpful.Thanks a lot...