Code for displaying a result on my computer screen

Is this somthing to do with the code or am I doing somthing else wrong?

Where are you expecting this output to appear? Are you opening the Serial Monitor?