Why are the last two equations printing the wrong numbers? Thanks in advance.

Code:

#include <stdio.h>
#include <math.h>
int main() {
int x1,x2,x3,y1,y2,y3;
float c12,c13,c14;
printf("What are the first x and y coordinates?\n");
scanf("%d %d", &x1, &y1);
printf("What are the second x and y coordinates?\n");
scanf("%d %d", &x2, &y2);
printf("What are the third x and y coordinates?\n");
scanf("%d %d", &x3, y3);
c12 = (pow(x2 - x1,2) + pow(y2 - y1,2));
c12 = sqrt(c12);
printf("%.2f\n", c12);
c12 = (pow(x3 - x1,2) + pow(y3 - y1,2));
c12 = sqrt(c13);
printf("%.2f\n", c13);
c12 = (pow(x3 - x2,2) + pow(y3 - y2,2));
c12 = sqrt(c14);
printf("%.2f\n", c14);
return 0;
}