Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
#include <stdio.h>
Functions | |
unsigned long | gcd (unsigned long a, unsigned long b) |
unsigned long | lcm (unsigned long a, unsigned long b) |
int | main (void) |
Problem 5 solution
unsigned long gcd | ( | unsigned long | a, |
unsigned long | b | ||
) |
Compute Greatest Common Divisor (GCD) of two numbers using Euclids algorithm
unsigned long lcm | ( | unsigned long | a, |
unsigned long | b | ||
) |
int main | ( | void | ) |
Main function