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
Explain different types of segment?
why do u choose to go for testing why cant for devoloping
Which data type/types are supported by vbscript language and what are their specialties?
what is the use of QCUtil? explain with one example?
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?
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?
how to write validation function for date in vb script
What is the purpose of the err object in the vbscript language?
write a function to read the items from combobox of Flight reservation & save in excel (QTP)??
Which function is used in the vbscript language to convert the specified expression into a date type value?
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
Write a Script for ATM in QTP
who will create the object?
What is the main difference between function and sub-procedure?
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.