DEV/BUT1/DEV1.1/Recusrivité/1.c
2024-02-01 13:55:03 +01:00

16 lines
221 B
C

#include <stdlib.h>
#include <stdio.h>
void exemple(unsigned n) {
if (n != 0) {
putchar('>');
exemple(n-1);
putchar('<');
} else
putchar('O');
}
int main(void){
exemple(4);
return EXIT_SUCCESS;
}