CodesC/TP3/while.c

18 lines
304 B
C
Raw Normal View History

2021-10-06 18:32:46 +00:00
#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;
}