fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.
Fuzion
•
Idioms
•
Idiom # 74: Compute GCD
Idiom # 74: Compute GCD
See
programming-idioms.org
:
Code
a := int 18 b := int 12 x := a.gcd b
What are effects?
Running example
ex74 is a := int 3 ** int 142 b := int 3 ** int 242 x := a.gcd b say x
What are effects?
last changed: 2024-07-01
next: Idiom # 75: Compute LCM