.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
int a;
|
||||
int b;
|
||||
int min;
|
||||
int max;
|
||||
int i;
|
||||
|
||||
printf("Entrez deux entiers : ");
|
||||
scanf("%d %d", &a, &b);
|
||||
|
||||
if (a < b) {
|
||||
min = a;
|
||||
max = b;
|
||||
} else {
|
||||
min = b;
|
||||
max = a;
|
||||
}
|
||||
|
||||
for (i = min; i <= max; i++) {
|
||||
printf("%d\n", i);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user