Skip to content

Commit 18dc8ad

Browse files
committed
Standardize swift output
1 parent f5f95fb commit 18dc8ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contents/euclidean_algorithm/code/swift/euclidean_algorithm.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ func euclidMod(a: Int, b: Int) -> Int {
2727
}
2828

2929
func main() {
30+
print("[#]\nModulus-based euclidean algorithm result:")
3031
print(euclidMod(a: 64 * 67, b: 64 * 81))
32+
print("[#]\nSubtraction-based euclidean algorithm result:")
3133
print(euclidSub(a: 128 * 12, b: 128 * 77))
3234
}
3335

0 commit comments

Comments
 (0)