Check out example codes for "c#". It will help you in understanding the concepts better.

Code Example 1

double num = //some number you have
double num2 = //some another number you have
Console.WriteLine(num + num2);

Code Example 2

Console.WriteLine("Hello World!");

Code Example 3

// BEST CODING LANGUAGE TO LEARN 2020

Code Example 4

/* Answer to: "c#" */

/*
  C# is a general-purpose, multi-paradigm programming language
  encompassing strong typing, lexically scoped, imperative,
  declarative, functional, generic, object-oriented, and
  component-oriented programming disciplines.
*/

Code Example 5

using System; 

namespace ExampleApp {
    class Example {
        static void Main(string[] args) {
            Console.WriteLine("Hello, world!");
        } 
    } 
}

Code Example 6

/* A C# (C-sharp ex.) */ 
using System;
	namespace helloWorld
    {
      class Program
      {
        static void Main()
        {
          Console.WriteLine("What's your age?")
           string age = Console.ReadLine()
            Console.WriteLine($"You are {age} years old!")
        }
      }
    }

Code Example 7

using System;
using System.Drawing;

public class Example
{
    public static Image img;

    public static void Main()
    {
        img = Image.FromFile("Image.png");
    }
}

Code Example 8

using System;
using System.Windows.Forms;

class Program
{
    static void Main()
    {
        MessageBox.Show("Hello, World!");
        Console.WriteLine("Is almost the same argument!");
    }
}

Code Example 9

using System;

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

Code Example 10

using System;

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

Learn ReactJs, React Native from akashmittal.com