Transférer les fichiers vers 'TP3'

This commit is contained in:
Jose-maria FULLANA 2021-10-06 20:32:46 +02:00
parent dad45c24e0
commit d58e3a5914
1 changed files with 17 additions and 0 deletions

17
TP3/while.c Normal file
View File

@ -0,0 +1,17 @@
#include <stdio.h>
int main () {
int max = 5;
int i = 1;
while ( i <= max) {
printf("%d \n",i);
i = i + 1 ;
}
/********************************/
/* valeur à la fin */
/********************************/
printf("après la boucle i vaut %d \n",i);
return 1;
}