DEV/BUT1/DEV1.1/Recusrivité/1.c

16 lines
221 B
C
Raw Normal View History

2024-02-01 13:55:03 +01:00
#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;
}