/go-division

Column Division

Primary LanguageGoApache License 2.0Apache-2.0

go-division

Go Report Card

Column Division in Go

Use Docker

$ docker run -it --rm andreax79/division 3279 25
 3279 | 25
 25   |----
  ----| 131
  77  |
  75  |
   ---|
   29 |
   25 |
    --|
    4 |

3279 : 25 = 131 (4)

Run from source

$ go run division.go 1024 8
 1024 | 8
  8   |----
  ----| 128
  22  |
  16  |
   ---|
   64 |
   64 |
    --|
    0 |

1024 : 8 = 128 (0)