- 1
[updated 4.2 question]
I switched the place of the ; but it says no input or something like that, and it’s telling me to put in a } but idk where to put it. Here is my code using System; namespace MyApp { class Program { static void Main(string[] args) { //output "C# is cool" } } } static void Main(string[] args) { Console.WriteLine("C# is cool");
5 Respostas
+ 4
It's not possible to have 2 methods Main. And all methods must be into some class. Main method is the entry for your program, so you need to put your code there.
+ 2
Read the error again
+ 2
You write the writeline thing within the provided Main method. You don't create one outside the class.
0
THANK YOU TO ALL OF YOU GUYS WHO HELPED IN THE NOT UPDATED ONE AND THE UPDATED ONE! I finally finished :D
0
static void Main(string[]
args)
{
Console.WriteLine("C# is cool");