From 65850db3203ca210ea5dde2475c7ed361934b36c Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 22:05:31 +0000 Subject: Mon, Feb 19, 2024, 2:05 PM -08:00 --- wk3/pset/runoff/runoff.c | 1 + 1 file changed, 1 insertion(+) (limited to 'wk3/pset/runoff/runoff.c') diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c index ae69ce3..a959a2c 100644 --- a/wk3/pset/runoff/runoff.c +++ b/wk3/pset/runoff/runoff.c @@ -169,6 +169,7 @@ bool print_winner(void) if (candidates[i].votes > (voter_count / 2)) { printf("%s\n", candidates[i].name); + return true; } } return false; -- cgit v1.2.3