26 lines
424 B
C
26 lines
424 B
C
#include <stdio.h>
|
|
#include <math.h>
|
|
|
|
int func1(int x) {
|
|
return (x-2)*(x-4)*(x-11)*(x-18);
|
|
}
|
|
|
|
int func2(int x) {
|
|
return pow(x, 4) - 5 * pow(x, 3) + pow(x, 2) + 5;
|
|
}
|
|
|
|
void recurse1(int count) {
|
|
if(count >= 0) {
|
|
printf(" %d", func2(count));
|
|
recurse1(count - 1);
|
|
}
|
|
}
|
|
|
|
|
|
void recurse2(int count) {
|
|
if(count >= 0) {
|
|
recurse1(count - 1);
|
|
printf(" %d", func2(count));
|
|
}
|
|
}
|