Add div utility
This commit is contained in:
parent
268af8007f
commit
b93a5e1255
2 changed files with 9 additions and 1 deletions
8
div.nim
Normal file
8
div.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import cligen, sequtils
|
||||
import common
|
||||
|
||||
proc main(integers:seq[int]) =
|
||||
if integers.len == 2:
|
||||
echo integers[0] / integers[1]
|
||||
|
||||
dispatch(main, version=("version", nimbaseVersion))
|
||||
Loading…
Add table
Add a link
Reference in a new issue