21 lines
494 B
C
21 lines
494 B
C
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <math.h>
|
||
|
|
||
|
int main(void){
|
||
|
double x1;
|
||
|
double x2;
|
||
|
double y1;
|
||
|
double y2;
|
||
|
printf("Rentrez les coordonée du premier point(espace entre les abscisse et ordonnée):\n");
|
||
|
scanf("%lf %lf",&x1,&y1);
|
||
|
printf("\n");
|
||
|
getchar();
|
||
|
printf("Rentrez les coordonée du second point(espace entre les abscisse et ordonnée):\n");
|
||
|
scanf("%lf %lf",&x2,&y2);
|
||
|
printf("\n");
|
||
|
printf("distance : %lf\n", sqrt(pow(x2-x1,2)+pow(y2-y1,2)));
|
||
|
|
||
|
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|