//Program to calculate length of longest increasing subsequence in an array #include using namespace std; int LIS(int a[],int n){ int lis[n]; for (int i = 0; i < n; ++i) { lis[i] = 1; } for (int i = 0; i < n; ++i) { for (int j = 0; j < i; ++j) { if(a[i]>a[j] && lis[i]>n; int a[n]; cout<<"Enter array elements: "; for (int i = 0; i < n; ++i) { cin>>a[i]; } cout<