This commit is contained in:
2026-09-14 10:44:11 +02:00
parent 6dbd74db95
commit bf705d701d
9 changed files with 52 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%.15f\n", 12345.678910111213);
return EXIT_SUCCESS;
}
BIN
View File
Binary file not shown.
+9
View File
@@ -0,0 +1,9 @@
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%f\n", +1.0/0.0);
printf("%f\n", -1.0/0.0);
printf("%f\n", -0.0/0.0);
return EXIT_SUCCESS;
}
+4
View File
@@ -0,0 +1,4 @@
#include <stdlib.h>
#include <stdio.h>
i
BIN
View File
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%f\n", 5.0+2.5);
printf("%f\n", 5.0-2.5);
printf("%f\n", 5.0*2.5);
printf("%f\n", 5.0/2.5);
return EXIT_SUCCESS;
}
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+22
View File
@@ -0,0 +1,22 @@
#include <stdlib.h>
#include <stdio.h>
int main() {
float nombre;
char caractere;
printf("Entrez un nombre réel : ");
scanf("%f", &nombre);
printf("En notation scientifique : %e\n", nombre);
printf("Entrez un caractère : ");
scanf(" %c", &caractere);
for (int i = 0; i < 5; i++) {
printf("%c", caractere);
}
printf("\n");
return 0;
}