Quantcast
Channel: Implement division using only addition - Code Golf Stack Exchange
Browsing all 21 articles
Browse latest View live

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

Browsing all 21 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>