From 2e38d3417285fc502c9df0d9cd874566c3a50e17 Mon Sep 17 00:00:00 2001 From: mrroy2 <91710817+mrroy2@users.noreply.github.com> Date: Fri, 1 Oct 2021 10:28:47 +0530 Subject: [PATCH] Update 50. Count of 3's.c --- 50. Count of 3's.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; }