Advanced
Image

C # is a programming language ( see DEF) multiplatform, object oriented, derived from C++ and developed by Microsoft.

Similar to JAVA, it allows you to create websites, Web and PC App., games and DB App.

Code Examples

→ Let's start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be. However, you must go over 30 to 40 pages per level, before moving on to the next step...

→ In order to evaluate your codes, click on the icon on the left at the bottom of the page (gears), then choose a compiler from the list that will be open in another tab. Finally, test your work.

NOW REPRODUCE AND IMMERSE YOURSELF!

C 0001 - Hello World !

Reproduce this code (please do not copy-paste!). Watch out for the indentation!

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

C 0002 - Importance of syntax

Reproduce this code (please do not copy-paste!). Watch out for the indentation!

using System;
namespace Helloworld
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine("Hello World !");
      Console.WriteLine("I go to the line...");

      Console.Write("Hello World !");
      Console.Write(" I stay on this line...");    
    }
  }
}

C 0003 - Several types of information

Reproduce this code (please do not copy-paste!). Watch out for the indentation!

using System;
namespace MyApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      int myNum = 9;               // Integer
      double myDoubleNum = 4.99D;  // Floating point
      char myLetter = 'M';         // Character
      bool myBool = true;          // Boolean
      string myText = "Hello World !";     // String
      Console.WriteLine(myNum);
      Console.WriteLine(myDoubleNum);
      Console.WriteLine(myLetter);
      Console.WriteLine(myBool);
      Console.WriteLine(myText);
    }
  }
}

C 0004 - Declarations and Statements

Reproduce this code (please do not copy-paste!). Watch out for the indentation!

using System;
namespace MyApplication
{
  class Program
  {
    static void Main(string[] args)
    {
      int x = 48;
      int y = 22;
      if (x > y)
      {
        Console.WriteLine("x is bigger than y");
      }
    }
  }
}

Icon

CHOOSE YOUR COMPILER

Reproduce this code, choosing one of the compilers below (♦ see DEF) (don't copy-paste! It would be too easy). They have the same use, just pick up one according to your preferences.

When you copy your code, replace the existing code (by default) with your own.

Warning ! For some of these compilers, you might have to choose the programming language yourself, in a specific menu which is offered to you. Of course, don't forget to click on RUN !

C# Technical Specifications

Most Recent Versions

Frameworks

Tools And Methodologies

Tests

Info+ (C#)

 Creation
» Creation date: 2001
* Created and developped by Microsoft
* Influenced by C/C ++ and Java
* Cross-platform
* Multiple licenses

Tools+ (C#)

 Softwares & Frameworks

News

Tags

Reflex 002 ©
2023 / All rights reserved

Legal structure based in
Nice - FRANCE / Montreal - CANADA
Only by appointment...

Search

Image