Does anybody know how to this question....
An election is contested by 5 candidates.They are numbered 1-5 and the voting is done by marking the candidate no on the ballot paper. Writea program to read the ballots and count the votes cast for each candidate using an array variable count.In case ano is read outside the range 1-5 the ballot is considered as aspoilt ballot.and also count the no of spoilt ballots..