diff --git a/50. Count of 3's.c b/50. Count of 3's.c index 617ada0..c037e7f 100644 --- a/50. Count of 3's.c +++ b/50. Count of 3's.c @@ -6,7 +6,7 @@ int count_3s(int n) int count = 0; while (n > 0) { - if (n & 10 == 3) + if (n % 10 == 3) { count++; }