oooodchod

This commit is contained in:
Tančáková 2024-03-20 17:39:22 +01:00
parent ccd49e57ab
commit da4173541d

View File

@ -33,7 +33,7 @@ int main() {
printf("%d %s\n", database[i].votes, database[i].name); printf("%d %s\n", database[i].votes, database[i].name);
} }
// Spočítanie a výpis celkového počtu hlasov // Načítanie a použitie počtu hlasov zo vstupu
int total_votes = 0; int total_votes = 0;
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
total_votes += database[i].votes; total_votes += database[i].votes;