How will you divide two numbers without using the division
operator?

Answer Posted / nakul gupta

we must subtract the second nnumber from the first till the
second number becomes greater than first number.
for example: we have two numbers a=245 & b=40 then a-b is
245-40=205
again 205-40=165
165-40=125
125-40=85
085-40=45
045-40=5
here we subract second number from first one 6 times &
remainder is 5.

Also if we divide 245 by 40 the quotient is 6 & remainder
is 5.

Is This Answer Correct ?    53 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Test cases have written according to Flow of the software working or according to Screens?

1460


How to test the below code and write test case? Prove that this code is wrong? int add(int a ,int b) {return a+b; }

1591


For any web application, what are the possible login features that should be tested?

811


Which model is following in your company for developing software?

717


why QA team is necessary for an organization?

2618






what are the risk factors in the project? what is the base for testplan and entry criteria ,exit criteria for test plan?

1951


What are all the scenario for 1.google analytics 2.api 3.paypal

1465


Write a set of test cases to test youtube?

7187


What are the main key components in web applications and client and server applications?

721


Hi friends, Im an MBA Finance, 2 yrs of exp workng in Investment com, + around 2 yrs of exp in Manual testing in Finane domain. Im looking for manual testing jobs but not getting any calls, Im worried is manual tesing in finance domain do have any good scopes in future or not. Plz provide me ur valuable suggestion,so tht I can best decision to retain in this platform(manual testing). or not

1885


What is the negative testing and example

996


Hello all, Can someone tell me what kind of questions i can expect from hiring manager along with two team members on final face to face interview for manual testing position.. I am switching from BA to QA as its better on benefits etc.. Thanks in advance

1475


What do you do (with the project tasks) when the schedule fails?

2581


What is the difference between load and stress testing?

722


What are the phases involved in software testing life cycle?

695