diff --git a/TP6/marche.c b/TP6/marche.c new file mode 100644 index 0000000..1efc291 --- /dev/null +++ b/TP6/marche.c @@ -0,0 +1,15 @@ +#include +#include + +int main() +{ + + int x = 0; + + while ( x <= 20 && x >= -20){ + + x += rand()%3 - 1 ; + printf("%d \n",x); +} + +}