Transférer les fichiers vers 'TP3'
This commit is contained in:
parent
d58e3a5914
commit
474e609763
|
@ -0,0 +1,20 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main () {
|
||||||
|
int a = 5;
|
||||||
|
|
||||||
|
int i = 6;
|
||||||
|
/********************************/
|
||||||
|
/* avec une variable auxiliaire */
|
||||||
|
/********************************/
|
||||||
|
do {
|
||||||
|
printf("%d \n",i);
|
||||||
|
i = i + 1 ;
|
||||||
|
} while (i<= a) ;
|
||||||
|
/********************************/
|
||||||
|
/* valeur à la fin */
|
||||||
|
/********************************/
|
||||||
|
printf("a la fin i vaut %d \n",i);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue