resumos/cursos/cs50/all-challenges/problems/runoff/runoff.c
bool print_winner(void)
{
    bool hasWinner = false;
    int value_to_win = voter_count / 2;
    for (int i = 0; i < candidate_count; i++)
    {
        if (candidates[i].votes > value_to_win)
        {
            printf("%s\n", candidates[i].name);
            hasWinner = true;
            break;
        }
    }
    return hasWinner;
}
// Print the winner of the election, if there is one

Print the winner of the election, if there is one
Print the winner of the election if there is one
bool print_winner(void)
{
    bool hasWinner = false;
    int value_to_win = voter_count / 2;
    for (int i = 0; i < candidate_count; i++)
    {
        if (candidates[i].votes > value_to_win)
        {
            printf("%s\n", candidates[i].name);
            hasWinner = true;
            break;
        }
    }
    return hasWinner;
}
bool print_winner ( void ) { bool hasWinner = false ; int value_to_win = voter_count / 2 ; for ( int i = 0 ; i < candidate_count ; i ++ ) { if ( candidates [ i ] . votes > value_to_win ) { printf ( " \n " , candidates [ i ] . name ) ; hasWinner = true ; break ; } } return hasWinner ; }
Print the winner of the election, if there is one
Print the winner of the election if there is one