Input = 124

output should be 124421
Please do not use any string functions/variables

Answer Posted / gyanesh ranjan rout

Function printnumber(numb)

x=numb
y=strreverse(x)

msgbox x&y
End Function

printnumber(124)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of folders object of scripting.filesystemobject class in vbscript?

832


What is event handling in vbscript?

573


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)

3162


How strcomp function works?

607


What purpose does ‘on error resume next’ serves?

530






What is the difference between for loop and while loop?

528


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1528


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

595


How will you convert a string to lower case string using vbscript?

534


What is difference between vbscript and vba?

584


What is the use of option explicit in vbscript?

524


What is vbscript procedures?

580


Does VB/Win make standalone .EXE files?

2878


What are class events?

565


When does ‘on click of button’ event gets triggered in the vbscript language?

519