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

How to add actions in driver script to run those actions in QTP?

1732


How many types of operators are available in the vbscript language?

762


Explain the functionality of vbscript?

724


Which function is used in the vbscript language to convert the specified expression into a date type value?

715


How to create a cookie using vbscript?

858


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1635


When does ‘on click of button’ event gets triggered in the vbscript language?

783


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

2812


Can automation testing find ssame no. of bugs what we can find by manual testing?

1750


What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?

794


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?

1988


Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

1866


What are events in the vbscript language?

795


Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?

1755


who will create the object?

1930