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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / ahmed

how i can convert it into program in java i mean count how many times the subtract will be

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Manual Testing Interview Questions

What will you do if developer is not able to reproduce defect ?

12 Answers   Cap Gemini,


Do testers have to write separate test cases for performing sanity testing??

1 Answers  


What is pending/Rejected defect. Did ever come across such defect? Give example

2 Answers   Cap Gemini,


Define V -model with diagram

12 Answers   CitiGroup, HCL,


CAN ANYONE EXPLAIN IN DETAIL THE WATERFALL MODEL WITH THE OUTPUTS OF EACH PHASE.

4 Answers  






How do you determine user load for a performance test of a Web application?

0 Answers  


What are the advantages of automation over manual testing?

0 Answers  


Hi I just wanted to know the name of the document given by the test lead to the tester regarding their module for testing.

3 Answers  


How do you react when the developer says that defect you logged is not valid?

1 Answers   Wipro,


what are test beds

4 Answers   Fulcrum Logic,


I m 2009 pass out B.E. student and still searching job.last 3-4 interviewer asked me why r u not selected any company till now...but i didn't give properly answer so any one can tell what should i have to say abt this which will give positive impression to interviewer.

2 Answers  


difference between QA and QC?

3 Answers  


Categories