When you have a function that has a return it basically puts that value into the variable
ex: int a = print();
This would put the return value, width*height, into the variable a. In order to actually print it, it would be better to use a void function with it outputting the value when called, like bupeking2000 says above.