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...


int a=4857 i need output as 7584.without using any inbuild
function?

Answers were Sorted based on User's Feedback



int a=4857 i need output as 7584.without using any inbuild function?..

Answer / r.singh

varnum=4857
vartemp=0
while(varnum/10)>0 then
vartemp=(vartemp*10)+(varnum mod 10)
varnum=varnum/10
wend
rev=vartemp
msgbox rev

Is This Answer Correct ?    9 Yes 1 No

int a=4857 i need output as 7584.without using any inbuild function?..

Answer / bantanahal haribabu

s="12345"
While int(s)>0
n=s mod 10
x=x&n
s=int(s)/10
Wend
msgbox x

Is This Answer Correct ?    3 Yes 0 No

int a=4857 i need output as 7584.without using any inbuild function?..

Answer / testengineer

Thanku Mr.R.Singh,Miss Sumathi and Mr. Bantanahal Haribabu

But Could u please confirm me whether "MOD,INT,LEN" are Inbuilt Functions are not?

Is This Answer Correct ?    2 Yes 0 No

int a=4857 i need output as 7584.without using any inbuild function?..

Answer / anil

s=4857
For i=Len(s) To 1 step-1
c=Mid(s,i,1)
temp=temp&c
Next
MsgBox temp

Is This Answer Correct ?    2 Yes 0 No

int a=4857 i need output as 7584.without using any inbuild function?..

Answer / sumathi

var=4857
For i=1 to len(var)
x=var mod 10
num=num&x
var=var/10
var=fix(var)
Next
print num

Is This Answer Correct ?    1 Yes 0 No

int a=4857 i need output as 7584.without using any inbuild function?..

Answer / mogal

a = 4857

Do while ( a>0 )
num = a mod 10
a = a / 10
output = output & num
loop
print output

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VB Script Interview Questions

write a vb script to find the size of d drive?

3 Answers  


How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)

1 Answers   Google, IBM,


write a vb script to display 3*3 matrix

1 Answers  


How do display output message without using msgbox function?

5 Answers  


write a vb script to create a folder?

3 Answers  


How to write a general script which should does the following a). If a page object is given, it should identify the page object of the corresponding page(site). b). It should identify all the links of that particular page. in QTP tool?

2 Answers   IBM, Infosys, Wipro,


How regexp.execute method works?

0 Answers  


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

0 Answers  


Mention how to access array data?

0 Answers  


What is the event handling in vbscript?

0 Answers  


What is the difference between vb debugger and the script debugger?

0 Answers  


What is the technology used by vb script?

0 Answers  


Categories