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
Mention the rules for using option explicit statement?
who will create the object?
What is the use of option explicit in vbscript?
What is dictionary object in vbscript? Explain?
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
What is the technology used by vb script?
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)
How to Convert Hex color code to color name in VB Script?
Can automation testing find ssame no. of bugs what we can find by manual testing?
How to access array data?
Which operator can be used to change the value of the operand or change the state of the condition?
How will you get the octal value of the given number in vbscript?
What are the environments supported by vbscript language?
What are keywords in the vbscript language?
In what way program "hello world" you can write in vbscript?