Simple code that print "Hello World"- Using C#
Let we discuss about the basic programming in C#. I am a very beginner of C# and programming languages. I am sharing my gained knowledge of C# through this platform.Let us all Discuss and share your ideas and if you contradiction with the program ,Kindly comment. We Discuss
Simple code that print "Hello World"- Using C#
using System;
namespace HelloWorldApplication
{
class HelloWorld
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
}
}
}
O/P : Hello World
Explanation:
*First line of the program using system-using keyword is used to include the system namespace in the program
*Second line is the namespace declaration , As we know that namespace is a collection of classes. The Hello world Application contains the class Helloworld.
*Next is class declaration, we are using MAIN METHOD to execute the program. Method can be executed multiple times
*Console.WriteLine() Prints the output of the program.
If you are new to my blog, please visit for more : https://www.blogger.com/blog/posts/4368856735563138366?bpli=1&pli=1
Thanks!!!!!
Comments
Post a Comment