Ajout des fichiers des séances précédentes
This commit is contained in:
BIN
DEV1.1/TP07/.nfs00000000062b30c30000004b
Executable file
BIN
DEV1.1/TP07/.nfs00000000062b30c30000004b
Executable file
Binary file not shown.
24
DEV1.1/TP07/exo1.c
Normal file
24
DEV1.1/TP07/exo1.c
Normal file
@@ -0,0 +1,24 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
int n, i, x;
|
||||
|
||||
printf("entrez un réel :\n");
|
||||
n = scanf("%d", &n);
|
||||
printf("%d", n);
|
||||
|
||||
printf("entrez un réel :\n");
|
||||
i = scanf("%d", &i);
|
||||
printf("%d", i);
|
||||
|
||||
|
||||
x = n;
|
||||
if (x >= n); {
|
||||
while (x < i) {
|
||||
printf("%d", x);
|
||||
x = x + 1;
|
||||
}
|
||||
}
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user