ZS Associates interview question

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

Interview Answer

Anonymous

Mar 15, 2018

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