The TransCompilator

Solved LeetCode program · 29 of 1,000

#0029 · Divide Two Integers

Medium Math chunk-01.md

Original English source

The top is 10. The bottom is 3. The quotient is 0.
Repeat while top is at least bottom.
Decrease top by bottom. Add 1 to quotient.

Report quotient.

Open in Playground Browse all 1,000 problems

Expected stdout

3