https://online.codingblocks.com/player/38289/content/18718/4812
code----->
#include
#include<bits/stdc++.h>
using namespace std;
int main() {
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
int target;
cin>>target;
for(int i=0;i<n;i++){
for(int j=i+1;j<n;j++)
if((arr[i]+arr[j])==target)cout<<arr[i]<< " and " <<arr[j]<<endl;
}
return 0;
}