Input = 124
output should be 124421
Please do not use any string functions/variables
Answer Posted / pankaja yathindrakumar
'Input = 124 output should be 124421 Please do not use any string functions/variables
str="124"
Set r=New RegExp
r.pattern="."
r.Global=True
Set c= r.Execute(str)
For each key in c
t=key&t
Next
Msgbox str&t
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which constant is used for print and display functions and works as same as pressing enter key?
How to Import data from a file (file is on the desktop) to the data table
What is the use of the instr function?
How are values assigned to string type and numeric type variables?
Can u describe what kind of testing are for OTC derivates by banks.
Explain about the functionality of vb script?
What is the difference between a dictionary and an array?
after medical test,when will be the police verification
What are the 2 ways to pass a value to the function?
Illustrate briefly about the different types of statement
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
about vb scripting programs this type of all question& answers
How can the spaces from the string be removed?
what is the object hyrarchy in QTP for a web based application
What is the purpose of folders object of scripting.filesystemobject class in vbscript?