float i,m,n;
float newsum=0;
for (i=1;i<=10;i++)
for (m=1;m<=10;m++)
for (n=1;n<=10;n++)
if (i<m<n) {
newsum=newsum+(m*n*i)/(i*m+m*n+n*i);
cout << newsum << endl;
}
The very first number that is shown in the launched program is
0.33333
although shouldn't it be
0.5454
since
(1*2*3)/(1*2+2*3+3*1)=6/11
?
It looks like the first triplet of numbers that satisfies the 'if' condition should be