C program to calculate the distance between two points

C program to calculate the distance between two points

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

int main(){

    int x1 =0;
    int x2 =0;
    int y1 =0;
    int y2 =0;
    
    printf("Enter the x and y coordinates of the first point, seperated by a comma: \n");

    scanf("%d,%d",&x1,&y1);
    
    printf("Enter the x and y coordinates of the second point, seperated by a comma: \n");

    scanf("%d,%d",&x2,&y2);

    double distance=pow((x1-x2),2)+pow((y1-y2),2);
    distance=sqrt(distance);

    printf("The distance between point (%d, %d) and point (%d, %d) is %lf\n",x1, y1, x2, y2,distance);

    return 0;
}