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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain a few date functions in vbscript

757


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

865


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

1977


How to write functions and sub in vb script?

811


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

881


after medical test,when will be the police verification

1915


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

3143


What are keywords in the vbscript language?

738


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?

1763


What is the use of the formatdatetime function in the vbscript language?

761


Mention what is vbscript?

816


how does vb script help in web page designing? explain with example.

1761


What are the different types of loops available in the vbscript language?

731


How will you convert a string to upper case string using vbscript?

747


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

13500