This commit is contained in:
Simoes Lukas
2025-01-07 15:07:12 +01:00
parent f7764aa296
commit 59f7eead89
21 changed files with 475 additions and 16 deletions

View File

@@ -1,13 +1,21 @@
# include <stdio.h>
# include <stdlib.h>
int f(int n) {
if (n>100)
return n-10;
else
return f(f(n+11));
void sierpinski(unsigned int n) {
if (n == 0) {
DessinerSegment(100,800,800,800);
DessinerSegment(450,100,100,800);
DessinerSegment(450,100,800,800);
}
/* TODO */
}
int main(void) {
f(12);
int main(int argc, char** argv) {
InitialiserGraphique();
CreerFenetre(200, 200, 900, 900);
sierpinski((int) strtol(argv[1], NULL, 10));
while (1) {
/* Infini */
}
return EXIT_SUCCESS;
}