28 lines
439 B
C
28 lines
439 B
C
#include <stdio.h>
|
|
#include <math.h>
|
|
|
|
#define func1
|
|
|
|
int func3(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));
|
|
}
|
|
}
|