TP04 fini
This commit is contained in:
BIN
DEV1.1/TP04/extremite
Executable file
BIN
DEV1.1/TP04/extremite
Executable file
Binary file not shown.
9
DEV1.1/TP04/extremite.c
Normal file
9
DEV1.1/TP04/extremite.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;
|
||||
}
|
||||
BIN
DEV1.1/TP04/interet
Executable file
BIN
DEV1.1/TP04/interet
Executable file
Binary file not shown.
17
DEV1.1/TP04/interet.c
Normal file
17
DEV1.1/TP04/interet.c
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
double argent;
|
||||
printf("quel est le montant que vous souhaitez poser ? \n");
|
||||
scanf("%lf",&argent);
|
||||
argent=argent*1.04;
|
||||
argent=argent*1.04;
|
||||
argent=argent*1.04;
|
||||
argent=argent*1.04;
|
||||
argent=argent*1.04;
|
||||
argent=argent*1.04;
|
||||
argent=argent*1.04;
|
||||
printf("L'épargne vous a rapportée : %.2f\n",argent);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
11
DEV1.1/TP04/operation.c
Normal file
11
DEV1.1/TP04/operation.c
Normal file
@@ -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;
|
||||
}
|
||||
BIN
DEV1.1/TP04/poussiere
Executable file
BIN
DEV1.1/TP04/poussiere
Executable file
Binary file not shown.
7
DEV1.1/TP04/poussiere.c
Normal file
7
DEV1.1/TP04/poussiere.c
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%.15f\n", 12345.678910111213);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
BIN
DEV1.1/TP04/somme
Executable file
BIN
DEV1.1/TP04/somme
Executable file
Binary file not shown.
18
DEV1.1/TP04/somme.c
Normal file
18
DEV1.1/TP04/somme.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
double r1,r2,r3,r4,r5;
|
||||
printf("Tapez 5 réel : \n");
|
||||
scanf("%lf",&r1);
|
||||
getchar();
|
||||
scanf("%lf",&r2);
|
||||
getchar();
|
||||
scanf("%lf",&r3);
|
||||
getchar();
|
||||
scanf("%lf",&r4);
|
||||
getchar();
|
||||
scanf("%lf",&r5);
|
||||
printf("La somme des nombre est : %f \n",r1+r2+r3+r4+r5);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
BIN
DEV1.1/TP04/telescopage
Executable file
BIN
DEV1.1/TP04/telescopage
Executable file
Binary file not shown.
14
DEV1.1/TP04/telescopage.c
Normal file
14
DEV1.1/TP04/telescopage.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
double r;
|
||||
printf("Tapez un réel : ");
|
||||
scanf("%lf",&r);
|
||||
printf("%e\n",r);
|
||||
getchar();
|
||||
printf("Tapez un caractère : ");
|
||||
char l=getchar();
|
||||
printf("%c?\n%c?\n%c?\n%c?\n%c?\n",l,l,l,l,l);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user