Ajout de fichiers des séances précédentes

This commit is contained in:
2025-09-15 12:46:39 +02:00
parent 09c121ea7c
commit f451fce786
6 changed files with 54 additions and 0 deletions

12
DEV1.1/TP05/#Exo_4.c# Normal file
View File

@@ -0,0 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n;
double x;
printf("entrez un nombre : ");
n = scanf("%lf", &x);
printf("%f\n", x);
return EXIT_SUCCESS;
}

1
DEV1.1/TP05/.#Exo_4.c Symbolic link
View File

@@ -0,0 +1 @@
jabbar@salle224-01.6268:1757929846

12
DEV1.1/TP05/Exo_4.c Normal file
View File

@@ -0,0 +1,12 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n;
double x;
printf("entrez un nombre : ");
n = scanf("%lf", &x);
printf("%f\n", x,x,x,x,x,x);
return EXIT_SUCCESS;
}

View File

@@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.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;
}

12
DEV1.1/TP05/Opération.c Normal file
View File

@@ -0,0 +1,12 @@
#include <stdio.h>
#include <stdlib.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);
printf("%f\n", 5.0/2.5);
return EXIT_SUCCESS;
}

View File

@@ -0,0 +1,8 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%.15f\n", 12345.678910111213);
return EXIT_SUCCESS;
}