Skip to content

Commit 42fd666

Browse files
committed
Standardize nim output
1 parent 511b446 commit 42fd666

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contents/euclidean_algorithm/code/nim/euclid_algorithm.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,7 @@ func euclid_sub(in1, in2: int): int =
2424
result = a
2525

2626
when isMainModule:
27+
echo "[#]\nModulus-based euclidean algorithm result:"
2728
echo euclid_sub(64 * 67, 64 * 81)
29+
echo "[#]\nSubtraction-based euclidean algorithm result:"
2830
echo euclid_mod(128 * 12, 128 * 77)

0 commit comments

Comments
 (0)