Input = 124
output should be 124421
Please do not use any string functions/variables
Answer Posted / manjunathareddy
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
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
PLz send me the VB scripts which is having more examples my email id : hareen_11@yahoo.com
Mention what is byref and byval parameters in vbscript?
Which operator can be used to check if two numbers are equal or not in vbscript?
about vb scripting programs this type of all question& answers
What are class events?
What are the naming conventions while declaring a variable in the vbscript language?
What are the data types supported by vbscript?
How will you reverse a string in vbscript?
i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click
How will you get the smallest subscript of an array in vbscript?
how to automatically update the sql server2005 database records when insert in vb6?
Which operator is used to concatenate the 2 values in the vbscript language?
where can i learn VB scripint ?
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.
Explain what is loose binding? Why is it not a good practice to use it?