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


Please Help Members By Posting Answers For Below Questions

What are the 2 ways in which a variable can be declared in the vbscript language?

551


What is byref and byval parameters in vbscript?

596


Mention what is the main difference between function and sub-procedure?

538


Explain about tristate constants in vbscript?

595


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

785






Explain the filter expression?

616


Mention what are the rules to name variable in vbscript?

530


How will you get a combined string from array of string in vbscript?

536


When are redim statement and preserve keyword used in the vbscript language?

578


How to replace junk code recorded by QTP with a mall function.

1633


How will you release the memory acquired by an array variable in vbscript?

733


Which in-built function is used to format the number in the vbscript language?

567


filter the array values without using filter function?

1643


How will you format a number in percetage format in vbscript?

582


If else for do while select in vb script?

634