0

Newbie question to understand scripting c#

So how would this be written into a working script? When I type the script it says ..\Playground\(24,1): error CS1022: Type or namespace definition, or end-of-file expected int a = 8; int b = ++a; if(a > 5) b -= 3; else b = 9; Console.WriteLine(b);

4th Oct 2016, 12:31 AM
Zack
1 ответ
+ 1
Look at which symbol is in first place in the line 24. I think there's a superfluous curly brace. And check for the method Main.
13th Oct 2016, 9:10 AM
Nadezhda