↧
Answer by sergiol for Implement division using only addition
Tcl, 96 bytes, a additionswhere a is the divisor.Non-competing, but I just wanted to have fun.proc M f\ g { time {incr p $f} $g set p}proc D p\ f { while {[M [incr i] $f]<$p} {}set i}Try it online!
View Article