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

wht must be the interview question on corinthian information technology solutions incorporated.

2186


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1847


How are comments handled in the vbscript language?

511


What is the purpose of the err object in the vbscript language?

622


How to identify column in VSFlexgrid? My VSFlexgrid window is identified as 'Active X Control'

3273






Explain about scrrun.dll?

532


Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP

1873


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

744


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1797


Which operator can be used to do an xor operation in vbscript?

680


Why to use option explicit in vb script?

597


PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com

1660


Explain the constants in vbscript?

563


What are the properties of regexp object?

581


Explain vbscript in detail?

616