You are viewing a single comment's thread. Return to all comments →
@prasoontrivedi, I think you meant
for(int i=0;i < A.length-1 ; i++){for (int j=i+1;j < A.length;j++) sum+= A[i] * A[j];
since your array A is only 1-D ...
Kundu and Tree
You are viewing a single comment's thread. Return to all comments →
@prasoontrivedi, I think you meant
since your array A is only 1-D ...