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
Explain the functionality of vbscript?
i need to sort the data using qtp script for this how i need to write a qtp script
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
There are 5 web pages.write a script to click the button on 4th web page.
Which operator can be used to change the value of the operand or change the state of the condition?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
Explain about the functionality of vb script?
What is the scope of a constant declared using public?
How to add actions in driver script to run those actions in QTP?
How to declare an array in vbscript?
How can constants be declared in the vbscript language?
Differentiate javascript and vbscript?
Mention what is the use of option explicit in vbscript?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?