#include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <math.h>
void main()
{
float d;
float x1;
float x2;
float y1;
float y2;
float z1;
float z2;
printf("Enter x1 = ");
scanf("%x1",&x1);
printf("Enter x2 = ");
scanf("%x2",&x2);
printf("Enter y1 = ");
scanf("%y1",&y1);
printf("Enter y2 = ");
scanf("%y2",&y2);
printf("Enter z1 = ");
scanf("%z1",&z1);
printf("Enter z2 = ");
scanf("%z2",&z2);
d=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(x1-x2)+(z1-z2)*(z1-z2));
printf("Distance between points = %d", d);
printf("\n");
}