mercredi 2 janvier 2019

Division of two numbers by conversion in bit format

How can I divide two numbers without directly using division, multiplication or mode operator by converting them into bit format? The output should be the floor of the result of the division.

Example-

5 divided by 2 should output 2.

Aucun commentaire:

Enregistrer un commentaire