#include using namespace std; //binary search algo int bin_search(int n, int a[],int k){ // k is the input value, n is the size of array. in