the previous reply is for 2D. In case of 1D you just have x2-x1 and in 3D :
sqrt((x2-x1)^2+(y2-y1)^2+(z2-z1)^2)
[tex]\sqrt{(x2-x1)^{2}+(y2-y1)^{2}+(z2-z1)^{2}}[/tex]
so, more generaly, in a n dimensional space that euclidian distance is expressed as :
sqrt(sum((xi2-xi1)^2,i=1..n))
[tex]\sqrt(\sum_{i=1}^{n}(x_{i}2-x_{i}1)^2)[/tex]
this is a way to look at distances... not the only one

though, in our daily lives, in an euclidian space...