Can u plz tell why output is not coming

using namespace std;
int main()
{
int n,A[100],i=0,j,sum, k;
cout<<"enter the number of elements "<<endl;
cin>>n;
cout<<“now enter the elements”<<endl;
for(i=0;i<n;i++)
{
cin>>A[i];
}
cout<<"now enter the required sum "<<endl;
cin>>k;
j=n-1;
while(i<j)
{
sum=0;
sum=A[i]+A[j];
if(sum<k)
{
i++;
}
else if(sum>k)
{
j–;
}
else if(sum==k)
{

		cout<<"the required pair is "<<A[i]<<" and "<<A[j]<<endl;
		i++;
		j--;
	}
	
}
return 0;	

}

please save your code on ide.codingblocks.com and then share the link :slight_smile: