octobre
This commit is contained in:
parent
142b3d5b60
commit
2c5fa2958f
BIN
Dev1.1/Dev1110/Distance
Executable file
BIN
Dev1.1/Dev1110/Distance
Executable file
Binary file not shown.
24
Dev1.1/Dev1110/Distance.c
Normal file
24
Dev1.1/Dev1110/Distance.c
Normal 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
BIN
Dev1.1/Dev1110/Extremités
Executable file
Binary file not shown.
8
Dev1.1/Dev1110/Extrémités.c
Normal file
8
Dev1.1/Dev1110/Extrémités.c
Normal 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
BIN
Dev1.1/Dev1110/Poussiere
Executable file
Binary file not shown.
7
Dev1.1/Dev1110/Poussière.c
Normal file
7
Dev1.1/Dev1110/Poussière.c
Normal 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
BIN
Dev1.1/Dev1110/telescopage
Executable file
Binary file not shown.
19
Dev1.1/Dev1110/telescopage.c
Normal file
19
Dev1.1/Dev1110/telescopage.c
Normal 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user