Knowby
C Tutorial Hello World
Welcome to C# Programming. And now, I will show you how to print Hello World.
Welcome to C# Programming. And now, I will show you how to print Hello World.
1
Step 1 of 7

Welcome to C# Programming. And now, I will show you how to print Hello World.

  1. In the first line, type using system.
  2. And then second line, class program.
2
Step 2 of 7
<p>More steps here:</p><ol><li>Over and over</li><li>Second and third</li></ol><h2>Testing text</h2>

More steps here:

  1. Over and over
  2. Second and third

Testing text

3
Step 3 of 7
  • Inside the class program, there is static void main. 
  • Inside the static void main, there is console.rightline. Inside the rightline, there is open and close parenthesis.
4
Step 4 of 7
Inside the open and close parenthesis, there is double quotes.
5
Step 5 of 7

Inside the double quotes, there is Hello World.

Then, end statement.

Then, when we run it, console application will close immediately.

6
Step 6 of 7
To prevent that, we will put console. readline. When we run it again, we will see that Hello World displayed.
7
Step 7 of 7
And that's it for this tutorial. Thank you for watching.