diff --git a/Dev1.1/Dev1110/Distance b/Dev1.1/Dev1110/Distance new file mode 100755 index 0000000..cac79ed Binary files /dev/null and b/Dev1.1/Dev1110/Distance differ diff --git a/Dev1.1/Dev1110/Distance.c b/Dev1.1/Dev1110/Distance.c new file mode 100644 index 0000000..6091594 --- /dev/null +++ b/Dev1.1/Dev1110/Distance.c @@ -0,0 +1,24 @@ +#include +#include +#include + +int main(void){ + int x_un; + int x_deux; + int y_un; + int y_deux; + int x; + int y; + printf("rentrez coordonnées x du premier point :"); + scanf("%d",x_un); + printf("rentrez coordonnées y du premier point :"); scanf("%d",y_un); + printf("rentrez coordonnées x du deuxieme point :"); + scanf("%d",x_deux); + printf("rentrez coordonnées y du deuxieme point :"); + scanf("%d",y_deux); + x = fabs(x_un - x_deux); + y = fabs(y_un - y_deux); + printf("(%d,%d)",x,y); +return EXIT_SUCCESS; +} + diff --git a/Dev1.1/Dev1110/Extremités b/Dev1.1/Dev1110/Extremités new file mode 100755 index 0000000..9c5ad40 Binary files /dev/null and b/Dev1.1/Dev1110/Extremités differ diff --git a/Dev1.1/Dev1110/Extrémités.c b/Dev1.1/Dev1110/Extrémités.c new file mode 100644 index 0000000..5b21785 --- /dev/null +++ b/Dev1.1/Dev1110/Extrémités.c @@ -0,0 +1,8 @@ +#include +#include +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; +} diff --git a/Dev1.1/Dev1110/Poussiere b/Dev1.1/Dev1110/Poussiere new file mode 100755 index 0000000..81056a9 Binary files /dev/null and b/Dev1.1/Dev1110/Poussiere differ diff --git a/Dev1.1/Dev1110/Poussière.c b/Dev1.1/Dev1110/Poussière.c new file mode 100644 index 0000000..434c446 --- /dev/null +++ b/Dev1.1/Dev1110/Poussière.c @@ -0,0 +1,7 @@ +#include +#include + +int main(void) { +printf("%5.12f\n", 12345.678910111213); +return EXIT_SUCCESS; +} diff --git a/Dev1.1/Dev1110/telescopage b/Dev1.1/Dev1110/telescopage new file mode 100755 index 0000000..4dadc52 Binary files /dev/null and b/Dev1.1/Dev1110/telescopage differ diff --git a/Dev1.1/Dev1110/telescopage.c b/Dev1.1/Dev1110/telescopage.c new file mode 100644 index 0000000..e2b79ed --- /dev/null +++ b/Dev1.1/Dev1110/telescopage.c @@ -0,0 +1,19 @@ +#include +#include +#include + +int main(void){ + float reel; + int entier; + int decimal; + int pui; + printf("rentrez un réel :"); + scanf("%f", &reel); + entier = trunc(reel); + decimal = reel - entier; + pui = log10(decimal)+1; + printf(" L'écriture scientifique de ce réel est : %d x %d10^-%d",entier,decimal,pui); + return EXIT_SUCCESS; +} + +