Developpement/23DEV1.1/TPS1/TP01/07-Boucles/sequence1.c

15 lines
268 B
C
Raw Permalink Normal View History

2024-12-09 11:53:11 +01:00
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int x,y;
printf("choisissez un entier: ");
scanf("%d", &x);
printf("choisissez un second entier: ");
scanf("%d", &y);
do{
printf("%d\n",x);
x = x+1;
}while(x <= y);
return EXIT_SUCCESS;
}