17 lines
429 B
C
17 lines
429 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
int main() {
|
||
|
int entier1;
|
||
|
int entier2;
|
||
|
printf("Veuillez entrer un premier entier\n");
|
||
|
scanf("%d", &entier1);
|
||
|
printf("Veuillez entrer un deuxieme entier plus grand que le premier\n");
|
||
|
scanf("%d", &entier2);
|
||
|
for (;entier1 > entier2; entier2 = entier2 + 1) {
|
||
|
printf("%d\n", entier2);}
|
||
|
for (;entier2 > entier1 ; entier1 = entier1 + 1 ) {
|
||
|
printf("%d\n", entier1);
|
||
|
}
|
||
|
}
|