Reorganize tests

This commit is contained in:
Jeehoon Kang
2020-04-23 23:07:23 +09:00
parent 073a65ae53
commit 7c53818f73
50 changed files with 3 additions and 4 deletions

15
examples/c/gcd.c Normal file
View File

@@ -0,0 +1,15 @@
int gcd(int a, int b) {
a = (a > 0) ? a : -a;
b = (b > 0) ? b : -b;
while(a != b) {
if(a > b) { a -= b; }
else { b -= a; }
}
return a;
}
int main() {
return gcd(18, 21) == 3;
}