Hello,

I have some problem with a project that wants to find the three bigger numbers in a table of ten numbers.I find the biggest number but i can't think the logical function to find the other two.

i wrote this code

for (i = 0; i < LIM; i++)

cout<<table[i]<<" ";

max = table[0];

max1=table[0];

max2=table[0];

for (i = 0; i < LIM; i++n)

if (table[i] > max)

max = table[i];

for (i = 0; i < LIM; i++)

if(max>max1)

max1=table[i];

for (i = 0; i < LIM; i++)

if(max1>max2)

max2=table[i];

cout << endl<<endl;

but is definitely wrong :0

Thanks in advance!!!