Whats wrong in this

#include
using namespace std;
int main() {
int arr[] = {1,3,5,7,10,11,12,13};
int i=0;
int key = 16;
int j= sizeof(arr)/sizeof(int) - 1;
while(i<j){
int csum=arr[i] + arr[j];
if(csum>key){
j–;
}else if(csum<key){
i++;
}else if(csum==key){
cout<< arr[i] << ‘and’ << arr[j];
i++;
j–;
}
}

}

hi @shamayil.amd send the code by saving in some online ide, its not readable here

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.