Input = 124
output should be 124421
Please do not use any string functions/variables
Answer Posted / bherolal bhargav
i=cint(inputbox("Enter 3 digit No."))
i = i*1000+((i mod 100) mod 10)*100+((i mod 100) -(i mod
100) mod 10)+i\100
msgbox i
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are the 2 ways in which a variable can be declared in the vbscript language?
What is byref and byval parameters in vbscript?
Mention what is the main difference between function and sub-procedure?
Explain about tristate constants in vbscript?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
Explain the filter expression?
Mention what are the rules to name variable in vbscript?
How will you get a combined string from array of string in vbscript?
When are redim statement and preserve keyword used in the vbscript language?
How to replace junk code recorded by QTP with a mall function.
How will you release the memory acquired by an array variable in vbscript?
Which in-built function is used to format the number in the vbscript language?
filter the array values without using filter function?
How will you format a number in percetage format in vbscript?
If else for do while select in vb script?