Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Input = 124

output should be 124421
Please do not use any string functions/variables

Answer Posted / ramesh

Dim n
Dim s
Dim x
input=124
n=124
While int(n)>0
s=n mod 10
x=x&s
n=Int(n)/10
Wend
Msgbox input&x



Please explain this...........i am new to vb script

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to replace junk code recorded by QTP with a mall function.

2041


how to automatically update the sql server2005 database records when insert in vb6?

1903


Explain about scrrun.dll?

914


What is the difference between function and procedure?

1159


How many types of procedures are available in the vbscript language?

962


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1904


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

2389


What methods are used to create text files and open text files in the vbscript language?

944


what is used of Property........End Property loop ? how to write the script for it?

2206


How to access array data?

959


Explain about .wsf files?

1077


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3421


How can constants be declared in the vbscript language?

957


What is byref and byval parameters in vbscript?

1037


How do you declare a variable in vbscript?

1029