distancia de 2 puntos
TRANSCRIPT
Distancia de 2 puntos
#include <stdio.h>#include <conio.h>#include <math.h>
struct punto{long double x;long double y;
};
struct punto a;
int main(void){long double distancia;
//clrscr();printf("Ingrese valores:");scanf("%lf %lf", &a.x, &a.y);distancia=sqrt( a.x*a.x + a.y*a.y);printf("Distancia: %lf",distancia);return 0;
}