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


Please Help Members By Posting Answers For Below Questions

Explain different types of segment?

567


why do u choose to go for testing why cant for devoloping

1588


Which data type/types are supported by vbscript language and what are their specialties?

592


what is the use of QCUtil? explain with one example?

6324


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

1552






Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

525


how to write validation function for date in vb script

2144


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

624


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2393


Which function is used in the vbscript language to convert the specified expression into a date type value?

520


hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz

2582


Write a Script for ATM in QTP

3343


who will create the object?

1721


What is the main difference between function and sub-procedure?

549


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.

1442