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
What are class variables?
Explain the string concatenation function in vbscript?
Explain about operator precedence in vb script?
Compare java script and vb script?
What is the difference between VBScript and JavaScript?
How you can call vbscript functions?
What is the difference between for loop and while loop?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
How to create a function in vbscript?
Which function is used to perform string comparison?
What methods are used to create text files and open text files in the vbscript language?
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
What is event handling in vbscript?
What are subprocedures in vbscript?
Illustrate briefly about the different types of statement