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


Please Help Members By Posting Answers For Below Questions

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

1653


Mention what is byref and byval parameters in vbscript?

567


Which operator can be used to check if two numbers are equal or not in vbscript?

634


about vb scripting programs this type of all question& answers

1684


What are class events?

573






What are the naming conventions while declaring a variable in the vbscript language?

605


What are the data types supported by vbscript?

570


How will you reverse a string in vbscript?

608


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

1407


How will you get the smallest subscript of an array in vbscript?

799


how to automatically update the sql server2005 database records when insert in vb6?

1473


Which operator is used to concatenate the 2 values in the vbscript language?

543


where can i learn VB scripint ?

1582


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.

1430


Explain what is loose binding? Why is it not a good practice to use it?

569