hi, could anybody help me correct my code. . .because i tried debugging it so many times i just cant find the problem so i was supposed to find for the number that occurred the most and times it occurred in my program Thanks for your help in advance ^^
void occur()
{
cout<<"The Number that occur the most is: ";
for(int i=0;i<9;i++)
{
for(int j=i+1;j<10;j++)
{
if(num[i]==num[j])
{
cout<<num[i]<<" ";
}
}
}
cout<<endl;
}
void times()
{
int dup=0,time=0;
for(int i=0;i<10;i++)
{
num2[i]==num[i];
num2[i]+=1;
if(num2[i]==num[i])
{
dup+=1;
}
}cout<<"The number of time that occur is: "<<dup;
}