Write a function to accept a vector of masses (m) from the user and gives the corresponding energy to them. Energy vector is the output of the program. Constant c is the speed of light which is 2.9979 x 108 m/s inside the function.