Calculation of the volume and surface of a cuboïd knowing the coordinates of two opposite vertices I hope someone will help me with this problem i'm facing right now. So our C language teacher gives us an exercice to solve. The exercice itself looks easy and the programmation part is not the problem. So he did ask us to calculate the volume, surface and the total length of all edges of a cuboïd just knowing the coordinates of two vertices (those forming the space diagonal). I did my research on internet to find the mathematic formulas to calculate what i need here but apparently with just two vertices it's not possible. Now i'm confused i don't know if our teacher did forget to give another details or am i missing something big right here i really don't know! please can anyone here help. Thank you in advance :)
Here is the complete Exercice:
Task 3: Cuboid Calculations
A cuboid is represented by two of its vertices in three-dimensional space, as follow:

Write a C program that reads the coordinates of the two vertices from the screen (the coordinates of the two vertices will be given by the user of the programm)
and then calculates the following figures and outputs them on the screen:


*

*Volume  

*Surface 

*Total length of all edges


The edges of cuboid are parallel to the coordinate axes.
$$ x_2-x_1= L;\quad y_2-y_1= B; \quad  z_2-z_1 = H; $$
$$ V= LBH; \quad A = 2 (LB+BH +HL). $$
