What language are you programming in? Whatever print function you have it should probably go something like this. The volume = 343 The surface area = 294
To calculate this in code you could just use print(343-294);
Or you can use this (You can swap out the 7s for the variable length)