This commit is contained in:
Vieira Enzo 2021-10-11 16:00:36 +02:00
parent 142b3d5b60
commit 2c5fa2958f
8 changed files with 58 additions and 0 deletions

BIN
Dev1.1/Dev1110/Distance Executable file

Binary file not shown.

24
Dev1.1/Dev1110/Distance.c Normal file
View File

@ -0,0 +1,24 @@
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
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;
}

BIN
Dev1.1/Dev1110/Extremités Executable file

Binary file not shown.

View File

@ -0,0 +1,8 @@
#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/Dev1110/Poussiere Executable file

Binary file not shown.

View File

@ -0,0 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%5.12f\n", 12345.678910111213);
return EXIT_SUCCESS;
}

BIN
Dev1.1/Dev1110/telescopage Executable file

Binary file not shown.

View File

@ -0,0 +1,19 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
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;
}