DEV/DEV1.1/TP16:Recursivite/phases.c

17 lines
220 B
C
Raw Normal View History

2022-12-14 15:31:36 +01:00
#include <stdio.h>
#include <stdlib.h>
void exemple(unsigned n) {
if (n != 0) {
putchar('>');
exemple(n-1);
putchar('<');
} else
putchar('O');
}
int main(){
unsigned n=13;
exemple(n);
return 0;
}