Ajout de fichiers des séances précédentes
This commit is contained in:
12
DEV1.1/TP05/#Exo_4.c#
Normal file
12
DEV1.1/TP05/#Exo_4.c#
Normal 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
1
DEV1.1/TP05/.#Exo_4.c
Symbolic link
@@ -0,0 +1 @@
|
||||
jabbar@salle224-01.6268:1757929846
|
12
DEV1.1/TP05/Exo_4.c
Normal file
12
DEV1.1/TP05/Exo_4.c
Normal 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;
|
||||
}
|
||||
|
9
DEV1.1/TP05/Extrémités.c
Normal file
9
DEV1.1/TP05/Extrémités.c
Normal 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
12
DEV1.1/TP05/Opération.c
Normal 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;
|
||||
}
|
8
DEV1.1/TP05/Poussières.c
Normal file
8
DEV1.1/TP05/Poussières.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
int main(void) {
|
||||
printf("%.15f\n", 12345.678910111213);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Reference in New Issue
Block a user