DEV_BUT1/DEV1.1/TP04/sequence.c

15 lines
278 B
C
Raw Normal View History

2022-10-18 14:50:36 +02:00
#include <stdio.h>
#include <stdlib.h>
int main(void){
int val1;
int val2;
printf("Choisir la valeur 1");
scanf("%d", & val1);
printf("Choisir la valeur 2");
scanf("%d", & val2);
int i;
for(i = val1; i< val2+1; i = i+1){
printf("%d\n", i);
}
return EXIT_SUCCESS;
}