From 93ea7fe5957b62f18e8fbd17a21696bd7de6332d Mon Sep 17 00:00:00 2001 From: mjfernez Date: Sun, 9 Feb 2020 15:16:26 -0500 Subject: Organized everything, update README --- smallmult.c | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 smallmult.c (limited to 'smallmult.c') diff --git a/smallmult.c b/smallmult.c deleted file mode 100644 index 302f19b..0000000 --- a/smallmult.c +++ /dev/null @@ -1,23 +0,0 @@ -#include -#include - -// num: the number to divide -// gd: the greatest divisor to count up to -int isDivisible(int num, int gd){ - int divisible = 1; - for(int i = 1; i < gd; i++){ - if(num % i != 0) - divisible = 0; - } - return divisible; -} - -int main(){ - int found = 0; - int start = 2520; - while(!found){ - start += 20; - found = isDivisible(start, 20); - } - printf("%d\n", start); -} -- cgit v1.2.3