Ajout de fichiers des séances précédentes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
jabbar@salle224-01.6268:1757929846
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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