aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
Diffstat (limited to 'c')
-rw-r--r--c/012-highly_divisible_triangular_number.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/012-highly_divisible_triangular_number.c b/c/012-highly_divisible_triangular_number.c
index 4ece373..c25f37d 100644
--- a/c/012-highly_divisible_triangular_number.c
+++ b/c/012-highly_divisible_triangular_number.c
@@ -15,7 +15,7 @@ int count_divisors(int nb)
int i, div_nb = 0;
for (i = 1; i <= sqrt(nb); i++) {
if (nb % i == 0)
- div_nb += (i != nb / i ? 2 : 1);
+ div_nb += (i != nb / i ? 2 : 1); // how the hell did I get there? eddie woo
}
return div_nb;
}