Reverse the Given Number

March 23, 2009 at 2:06 pm Leave a comment

‘Reversing the Given Number…

Function Reverse(Num)

num_len=len(Num)

for i=0 to len(Num)-1

Rem=Num mod 10

‘msgbox Rem

Num=Num\10

‘msgbox Num

val=val&Rem

print val

Next

Reverse=val

End Function

Num=Inputbox(“Enter a Number to reverse”)

result=Reverse(Num)

msgbox “Reversed Number is      :”&result

thanks & regards,

Baba Fakruddin.D

Entry filed under: Interview Questions, QTP Beginners, VBScripting. Tags: .

ActionTemplate Identify Biggest number in given numbers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


 

March 2009
M T W T F S S
     
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Recent Posts

Top Posts

  • None

Top Clicks

  • None

Pages

Watch videos at Vodpod and other videos from this collection.

Blog Stats

  • 695 hits

Archives


Follow

Get every new post delivered to your Inbox.