This commit is contained in:
“[JMF]” 2023-11-09 00:20:58 +01:00
parent 411ef6c9e4
commit ca5a6f9ec2
1 changed files with 15 additions and 0 deletions

15
TP6/marche.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x = 0;
while ( x <= 20 && x >= -20){
x += rand()%3 - 1 ;
printf("%d \n",x);
}
}