In reply to dave_59:
Hi Dave,
I wrote the code in c++ something like this
#include <iostream>
using namespace std;
int main(){
int h[8]= {0,1,2,3,4,5,6,7};
int x[8] = {1,2,1,1,2,2,1,0};
int y[8] = {0};
for(int i:y)
while(--i > 0){
for(int n = 0; n < 8; ++n){
int sum = 0;
for(int k = 0; k < n; ++k){
sum += h[k]*x[n-k];
}
y[n]= sum;
}
for(int i:y)
cout<< i<< endl;
}
}