Advertisement
nonipal

Untitled

Jul 12th, 2021
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. void tabulate(void)
  2. {
  3.     for (int i = 0; i < voter_count; i++)
  4.     {
  5.         if (!candidates[preferences[i][0]].eliminated)
  6.         {
  7.             candidates[preferences[i][0]].votes++;
  8.         }
  9.         else
  10.         {
  11.             candidates[preferences[i][1]].votes++;
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement