C# Course – Worldwideasy – 01

C # is a multi-purpose programming language with general-purpose, including static typing, robust typing, vocabulary scope, essential, expression, functional, generative, object-oriented, and component-oriented programming discipline.

Today we expect basic knowledge from installing c # on a computer to coding and outputting.

C #  created by Microsoft Corporation. The platform here is a common language infrastructure. It is best to use Microsoft Visual Studio as the editor. Also, software such as Resharper can be used. The main framework of C # is the .NET Framework, which makes it easy to create user interfaces. C # is a language commonly used to build Windows applications and games.

C# does not need to be specifically entered into the computer. It is obtained automatically installing visual studio..

Start C# Coding

  1. First you want Download And Install Visual Studio(Windows operating system).
  2. Open Visual Studio.
  3. Go file and New project.
  4. Select Visual C# to Console Application and ok.
  5. After you can see Default code in below.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
//Code Here 
}
}
}

The code above must be present.

First Code in C#

Let’s see how to write code to print hello world.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
Console.ReadLine(); 
}
}
}

Type the code above in the toolbar. Click the Start button and you will get the output on a black screen as shown below.

hee
Output

Now you can type the code and run it. Edit the code above and try again. Next, we are going to show any shape using only the code called writeline();.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("      **");
Console.WriteLine("      /|");
Console.WriteLine("     / |");
Console.WriteLine("    /  |");
Console.WriteLine("   /   |");
Console.WriteLine("  /    |");
Console.WriteLine(" /     |");
Console.WriteLine("|      |");
Console.WriteLine("|      |");
Console.WriteLine("|      |");
Console.WriteLine("|______|");
Console.ReadLine();
}
}
}

look below it is the output of this code.

output
output

Thank you for all!

More C# ClickHere!

See you Next C# Lesson Soon!

Leave a Comment

Your email address will not be published. Required fields are marked *

Translate »