Ajout du TP05
This commit is contained in:
parent
1533259a4d
commit
92faaf81b8
0
DEV1.1/TP05/TP05_reponses.txt
Normal file
0
DEV1.1/TP05/TP05_reponses.txt
Normal file
19
DEV1.1/TP05/tests.c
Normal file
19
DEV1.1/TP05/tests.c
Normal file
@ -0,0 +1,19 @@
|
||||
# include <stdlib.h>
|
||||
# include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
double nombre;
|
||||
char lettre;
|
||||
printf("Veuillez saisir un réel : ");
|
||||
scanf("%lf", &nombre);
|
||||
printf("\nSa notation scientifique est : %e\n", nombre);
|
||||
printf("Veuillez taper un caractère : ");
|
||||
getchar();
|
||||
lettre = getchar();
|
||||
printf("%c\n", lettre);
|
||||
printf("%c\n", lettre);
|
||||
printf("%c\n", lettre);
|
||||
printf("%c\n", lettre);
|
||||
printf("%c\n", lettre);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
Reference in New Issue
Block a user