#include <stdio.h>
#include <math.h>

int main() {
    float x1, y1, x2, y2, distancia = 0;

    scanf("%f %f", &x1, &y1);
    scanf("%f %f", &x2, &y2);

    distancia = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
    printf("%.4f", distancia);

    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: