Using variables- getting a compiler error


i am getting a compiler error What am i doing wrong?

Hello Fares, welcome to the community :slight_smile:

The problem is that you have a colon instead of a semi-colon on the end of line 13.

You will find it is a lot easy to just copy/paste your code into the forum also, instead of the screenshots. All you need to then do is put the code formatting characters in front of and after the code itself. An additional benefit of this is for those that offer to help you, they can copy/paste parts of your code back in a reply for you, instead of having to type it all out, see below with regards to the code formatting.

Hope this helps :slight_smile:


See also;

Privacy & Terms