CodePudding user response:
New beginner C, hope the great god be able to write about itCodePudding user response:
Reference:# include & lt; stdio.h>
Void conv (int * p, int * q, int n);
Int main (int arg c, char * argv [])
{
,1,1,1 int x [4]={1}, h [6]=6,5,4,3,2,1 {};
int n;
Printf (" Input N: ");
The scanf (" % d ", & amp; N);
Conv (x, h, n);
system("pause");
return 0;
}
Void conv (int * p, int * q, int n)
{
Int y=0, m=3;
for(int i=0; i<=m; I++) {
If (n - i<0 | | n - i> 5) {
Y +=p [I] * 0;
continue;
}
Y +=p * q [I] [n - (I)];
}
Printf (" % d \ n ", y);
}