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

i need to sort the data using qtp script for this how i need to write a qtp script

3220


What is the scope of a constant declared using public?

561


about vb scripting programs this type of all question& answers

1693


What is the output of a + b in vbscript if a = 5 and b = 10?

2121


What are events in the vbscript language?

552






Which function is used to perform string comparison?

566


Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

1432


Why is error handling required?

576


What if you do not specify anything when you call a procedure?

538


How to delete a cookie using vbscript?

555


how to comvert 120 into one hunderd twenty rupees only and vice varsa

1805


How to take whole text output from screen of Bitmap Application.

1870


What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?

487


Out of the different type of operators, which are evaluated first and last in the vbscript language?

565


What is the difference between for loop and while loop?

552