fork download
  1. program distance
  2. real::x1,x2,y1,y2,d
  3. read *,x1,y1,x2,y2
  4. d=sqrt((x2-x1)**2+(y2-y1)**2)
  5. print *,'The distance is:',d
  6. end program distance
Success #stdin #stdout 0s 5320KB
stdin
4
5
2
4
stdout
 The distance is:   2.23606801