#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
struct pto
{
float x, y;
};
int main(){
typedef struct pto ponto;
int i;
float soma, resp;
ponto a, b;
a.x = 1.0;
a.y = 1.0;
b.x = 1.0;
b.y = 4.0;
printf("Ponto a (%.2f, %.2f)\n", a.x, a.y);
printf("\nPonto b (%.2f, %.2f)\n", b.x, b.y);
for(int i = 0; i < 2; i++)
{
soma = ((a.x - b.x)*(a.x - b.x) + (a.y - b.y)*(a.y - b.y));
resp = sqrt(soma);
}
printf("\nSoma = %.2f", resp);
getch();
return (0);
}