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 write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me
Explain about scrrun.dll in vbscript?
How to assign a numeric value to a variable?
Is VB Script Case sensitive or Case insensitive?
what is the object hyrarchy in QTP for a web based application
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
Which operator is used to concatenate the 2 values in the vbscript language?
What are the different types of loops available in the vbscript language?
What is the difference between vb debugger and the script debugger?
What is purpose of scripting.filesystemobject class in vbscript?
Explain the extension .hta?
How will you get a subset of a array in vbscript?
What are the 2 ways to pass a value to the function?
what is resorceallocation
What is the difference between a dictionary and an array?