TP04
This commit is contained in:
@@ -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,11 @@
|
|||||||
|
#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,11 @@
|
|||||||
|
#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,11 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(void) {
|
||||||
|
int n;
|
||||||
|
double x;
|
||||||
|
printf("Entrez un réel : ");
|
||||||
|
n = scanf("%lf", &x);
|
||||||
|
printf("notation scentifique: %f\n", x*x);
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user