Developpement/23DEV1.1/TPS1/TP2/22-Recursive/phrases.c

17 lines
258 B
C
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
#include <stdio.h>
#include <stdlib.h>
void exemple(unsigned n) {
if (n != 0) {
putchar('>');//à la fin
exemple(n-1);
putchar('<');//au début
} else
putchar('O');
}
int main(int argc, char const *argv[])
{
exemple(100);
return 0;
}