.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#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;
|
||||
}
|
||||
|
||||
i = min;
|
||||
while (i <= max) {
|
||||
printf("%d\n", i);
|
||||
i++;
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user