To resolve this issue, you should explicitly indicate that the literal is of type float. This can be done by appending an f (or F) to the value. Here’s the corrected code:
float pen = 10.5f;