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
How to replace junk code recorded by QTP with a mall function.
how to automatically update the sql server2005 database records when insert in vb6?
Explain about scrrun.dll?
What is the difference between function and procedure?
How many types of procedures are available in the vbscript language?
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.
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
What methods are used to create text files and open text files in the vbscript language?
what is used of Property........End Property loop ? how to write the script for it?
How to access array data?
Explain about .wsf files?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
How can constants be declared in the vbscript language?
What is byref and byval parameters in vbscript?
How do you declare a variable in vbscript?