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 about adodb.stream class?
How to declare an array in vbscript?
What is vbscript?
how to check whether link is disabled in QTP??
what is event handling?
Mention how to access array data?
How will you reverse a string in vbscript?
Which data type/types are supported by vbscript language and what are their specialties?
Mention what is the main difference between function and sub-procedure?
How to Import data from a file (file is on the desktop) to the data table
Explain about the asc function?
How to open browser in vb script?
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?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
Mention what is the difference between vbscript and vba?