In this task the compiler and hints are saying that I have wrote an if without an else. Does anybody know what the problem is?
If without an Else
Resolved
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Lisa L
11 May, 10:29
a conditional clause has the following syntax
where a statement is a single line of code or a code block (several lines of code in curly brackets)
like:
or
a second statement does not belong to the conditional clause anymore
if you let this follow an else then it is missing its opening if. 0