
como hago este programa con un arreglo y estructuras
Publicado por Daniel (7 intervenciones) el 23/06/2016 19:54:09
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <stdio.h>
#include <conio.h>
#include <math.h>
int main ()
{
float x1,x2,y1,y2;
float d;
printf("escribe el punto inicial:");
scanf("%f",&x1);
printf("escribe el punto final:");
scanf("%f",&x2);
printf("escribe el punto inicial dos:");
scanf("%f",&y1);
printf("escribe el punto final dos:");
scanf("%f",&y2);
d= (sqrt(pow(x2-x1,2))+(pow(y2-y1,2)));
printf("la distancia es:%f", d);
getch();
}
holaaa alguien me puede ayudar, mi duda es como hago este programa con un arreglo y estructuras
Valora esta pregunta


0