Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are class variables?

1089


Explain the string concatenation function in vbscript?

1100


Explain about operator precedence in vb script?

1121


Compare java script and vb script?

1139


What is the difference between VBScript and JavaScript?

2783


How you can call vbscript functions?

1152


What is the difference between for loop and while loop?

1128


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.

1890


How to create a function in vbscript?

1307


Which function is used to perform string comparison?

1185


What methods are used to create text files and open text files in the vbscript language?

1022


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

2187


What is event handling in vbscript?

1149


What are subprocedures in vbscript?

1144


Illustrate briefly about the different types of statement

2550