no output is prodced
Sum triplets problem ,
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