proc divmod(a, b: int) : tuple[re, remainder: int] = (a div b, a mod b)echo divmod(8, 5)
Standard input is empty
(re: 1, remainder: 3)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!