C# C# Basics (Retired) Perform if

stephen Capes
stephen Capes
1,002 Points

Help me solve this problem?

just keep getting "error CS1040: Preprocessor directives must appear as the first non-whitespace character on a line "

CodeChallenge.cs
bool c# = true ;
if (c#)
{        
Console.writeLine=("c# Rocks !");
}

1 Answer

Steven Parker
Steven Parker
176,602 Points

Variable names can only use letters, numbers, and underscores. The "#" symbol is used to identify preprocessor directives, and so it is confusing the compiler.