BUT2/DEV/DEV1.1/TP_Boucles/q1_dowhile.c

19 lines
319 B
C
Raw Normal View History

2023-10-23 13:23:36 +02:00
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int reel1;
int reel2;
printf("Saisissez un premier réel : ");
scanf("%d", &reel1);
printf("Saisissez un second réel : ");
scanf("%d", &reel2);
do {
printf("%d\n", reel1);
reel1 += 1;
} while (reel1<=reel2);
return EXIT_SUCCESS;
}