C# Course – Codemeets – 01

C sharp code 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.

Installing visual studio automatically obtains C#, it does not need to be specifically entered into the computer.

Microsoft developed C# as a programming language for building various applications, including Windows desktop and mobile apps, web services, and games. C# is designed to be easy to learn and use, it is a modern, object-oriented language. C++ and Java influenced the development of C#, which also includes features such as automatic memory management, garbage collection, and a simplified syntax. Handling common programming tasks such as strings and arrays is supported by C# and it can be integrated with the .NET Framework to access a wide range of libraries and frameworks. It’s versatility makes it commonly used in the industry for many types of applications.

Start C sharp Code

  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 c# code above in the toolbar. Click the Start button and you will get the output on a black screen as shown below.

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 output of this code.

Thank for all!

More C# ClickHere!

See you Next C sharp code Lesson Soon!

You may also like...

Leave a Reply

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

Translate »