0

On the first extra points program, I write {Console.WriteLine ("knowledge is power");} can someone tell me what I am doing wrong

15th Apr 2021, 8:17 AM
Rick
6 Answers
15th Apr 2021, 10:25 AM
Simba
Simba - avatar
+ 1
I finally got it! Thanks Simba.
15th Apr 2021, 10:31 AM
Rick
0
The Console.WriteLine function must be inside the main function.Otherwise your code will not work.In C# programming the Main method is where program starts execution. It is the main entry point of program that executes all the objects and invokes method to execute. There can be only one Main method in C#.
15th Apr 2021, 8:24 AM
The future is now thanks to science
The future is now thanks to science - avatar
0
I am talking about the 1st practice exercise, where I believe all I have to write is knowledge is power. The main is above where the exercise says that my code should go
15th Apr 2021, 9:20 AM
Rick
0
I'm talking about exercise 4.2
15th Apr 2021, 9:23 AM
Rick
0
Simba I tried entering the text exactly as you wrote it, and it still was wrong
15th Apr 2021, 9:39 AM
Rick