Beginner
    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

    We start with very simple codes. The more you progress, page after page, the more sophisticated the scripts will be.

    C 0001 - Hello World !

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

    Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, 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 0002 - Importance of syntax

    What is the difference between the two types of displays ?
    Watch out for 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...");    
        }
      }
    }

    Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, 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 0003 - Several types of information

    Observe the differences...
    Watch out for 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);
        }
      }
    }

    Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, 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 0004 - Declarations and Statements

    Fundamental for programming...
    Watch out fo 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");
          }
        }
      }
    }

    Reproduce this code, choosing one of the compilers below (♦ See DEF.) (don't copy-paste! It would be too easy). They have the same function, 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 !

    Info+

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

    Tools & Levels

    Software & Frameworks

    Practical cases

    In order to train you, we add small programs every week to this section in order to keep you up to speed.

    CASE 1

    BASIC LEVEL

    Preparing a working environment

    These recommendations will get you started with C#, as comfortably as possible.

    TRY

    CASE 2

    INTERMEDIATE LEVEL

    Create a Web App.

    This little kit will allow you to design a Web App. in the field of online clothing sales.

    TRY

    CASE 3

    EXPERT LEVEL

    Make a small video game

    Designing and developing an arcade video game...

    TRY

    2021 (C) Fond of Code tm (official trademark) - Reflex002 / Diego Piccini (da Todi).
    All rights reserved. Protected editorial content (www.theethicalweb.com) / INPI France.

    About Us...

    About Us...
    Reflex002

    O-O
    Programming
    Development

    Main Topics

    Main Topics

    Legal/Support

    Legal/Support
    Image
    © Copyright 2022 Reflex002. Designed By Art and Earth Networks and Technology / Diego Piccini / Piccini da Todi G&D Studio