Ajout du TP05

This commit is contained in:
Simoes Lukas 2024-09-10 15:03:39 +02:00
parent 1533259a4d
commit 92faaf81b8
2 changed files with 19 additions and 0 deletions

View File

19
DEV1.1/TP05/tests.c Normal file
View 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;
}