From 3de64cf7d952ec8435e6504c58dfb29c75558890 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:48:10 +0000 Subject: Mon, Feb 19, 2024, 12:48 PM -08:00 --- wk3/pset/runoff/runoff.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/wk3/pset/runoff/runoff.c b/wk3/pset/runoff/runoff.c index f6acc50..0868008 100644 --- a/wk3/pset/runoff/runoff.c +++ b/wk3/pset/runoff/runoff.c @@ -176,11 +176,17 @@ bool print_winner(void) */ /* - for (candidates) { - if (candidates.votes >= (voter_count / 2)) { + for (candidates) + { + if (candidates.votes >= (voter_count / 2)) + { printf("%s", candidate.name); return true; - } else if () + } + else if () + { + + } } */ return false; -- cgit v1.2.3