basfunding.blogg.se

How to use visual studio code with c
How to use visual studio code with c




how to use visual studio code with c

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

how to use visual studio code with c

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

  • Tip:It’s a good practice to add comments to your code.
  • The Solution name and the project name is CSharpSumOf2Numbers
  • Open Visual Studio and create a new C# Console Application.
  • For each solution create a new Console Application.

    how to use visual studio code with c

    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”)






    How to use visual studio code with c