Working commit.

This commit is contained in:
2017-12-27 19:38:38 -06:00
parent 81541daefd
commit babc8606ac
2 changed files with 35 additions and 0 deletions

16
euclid.c Normal file
View File

@@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
int euclid(int m, int n)
{
int remainder;
remainder = m % n;
while(remainder != 0) {
m = n;
n = remainder;
remainder = m % n;
}
return(n);
}