Czy w zadaniu poniżej chodzi o to abym zrobil program wczytujace l x1y1z1, x2y2z2 do tej funkcji ktory potem odejmuje od siebie pozycje x1-x2 itd?
The distance D between two points in a three dimensional space is given by D = [( x2 – x1 )2 + (y2 – y1)2 + (z2 – z1)2 ]1/2 Here x1, y1 , z1 and x2 , y2, z2 are the co-ordinates of the two points. Declare and define the function for D. Also make program which uses the function by calling it from main(). Determine and display the distance between points P( 5, 6, 8) and Q ( 10, 12, 30).0