If you post your actual code, instead of pictures, that would eliminate the guesswork (although the guesswork thus far looks like it is on target).
Why doesn't it work like I have it? This is how my teacher showed us to do it.
Presumably because the tiny little unclear character that I can't quite see isn't an "ordinary variable" but is a desktop published something.