Hi ,i am so happy that you guys help me out for my previous problem concerning about coding programming.Right now i am stuck with my Candidate programme where i need to Cout the total result for the winning candidate.
The question is : There is 5 candiate runing for little city where the population is 2000 people.I allready write the programme but i dont how to Cout the final result for the winning candidate .SO please can you help me out
#include <iostream>
using namespace std;
int main ()
{
const int candidatenumber=5;
const int votenumber=10;
int candidate[candidatenumber]={0};
int vote[votenumber];
for(int i=0;i<votenumber;i++)
{
cout<<"Enter your vote 1 to 5 :"<<endl;
cin>>vote[i];
candidate[vote[i]]++;
}
return 0;
}