You can put this solution on YOUR website!
You might need to draw yourself a picture to verify this, but the diagonal of a cube forms the hypotenuse of a right triangle whose legs are one side of the cube and the diagonal of one of the faces of the cube. So if a cube has a side length s, then the diagonal of a face is: