

In order to add a 1 line comment write ‘//’ before your comment anything after ‘//’ is ignored by the compiler.

As you notice, in the code below we added some comments that makes the code more readable.

Test the application and save your work You can run the application by clicking on the Start button with the green arrow.Ĭreate Console Applications that uses conditional and branching statements.Ĭomplete three simple programming tasks in C#.Exit The program when user clicks on any keyĬonsole.WriteLine(“Please press any key to Exit”) Console.WriteLine(“Please enter your name”)
