```
#include<stdio.h>
int dp[20];
int lis(int a[],int n)
{
int i,j,sum=0;
dp[0]=1;
for(i=0;i<6;i++)
{
for(j=i+1;j<n;j++)
{
if(a[j]>=a[i])
{
dp[j]=dp[j-1]+1;
}
else
dp[j]=dp[j-1];
}
}
}
int main()
{
int a[]={ 5, 3, 4, 8, 6, 7};
int i=0;
lis(a,6);
for(i=0;i<6;i++)
printf("%d ",dp[i]);
getch();
return 0;
}
```

hi , this is the code to print Longest increasing sequence in the given n numbers. but i want a little bit change in this that i want to tell the number of increasing sequqnces of length k , say 3 in this case. then what and where should i add something so as to do this. thanks