Sum triplets problem ,

no output is prodced

problem is here:
else if(a[i]+a[j]+a[k]==k)
{
cout<<a[i]<<", “<<a[j]<<” and "<<a[h]<<endl;
j++;
}

it should be a[i]+a[j]+a[h]…
everything else is fine.

please rate and resolve if satisfied.
thanks

hi @dakshi do you have any further doubts?