ZS Associates interview question

calculate a/b without using divide,multiply,modules operator

Interview Answer

Anonymous

15 Mar 2018

Use the approach in while loop: Divident = Divident - Divisor; quotient++;