C# Tutorial for BeginnersLesson 1 · C# tutorial for beginners
0/50

C# Tutorial for Beginners

Learn the language behind practical .NET apps and games.

50 lessonsAbout 4 hoursVideo by Bro CodeFree certificate
0/50 done

Lesson 1 of 50 · Start with the language

Video by Bro Code

Lessons

0 of 50 done · 5 chapters

Start with the language

C# tutorial for beginners

See how a C# program is structured and where to begin.

Visual note · Lesson 21Three items, starting at zero
About this course

This chapter

Learn the small pieces every C# program uses.

By the end of the course you can build

  1. Console programs, calculators, and mini games
  2. A strong base in C# syntax and control flow
  3. Classes, objects, inheritance, and interfaces
  4. A useful starting point for the .NET ecosystem

Type each example yourself, then change one value or rule before moving on. C# becomes easier when you see the compiler help you think.

Chapter quick checkCovers all 10 lessons

Quick check

3 questions on “Start with the language”

Practice, not a test. Get 2 of 3 right to mark this chapter as checked.

1/3What does this code print?
int a = 7;
int b = 2;
Console.WriteLine(a / b);

2/3Console.ReadLine() returns a string. Which line stores the user's age as a number?

3/3Which values can this dice roll produce?
Random random = new Random();
int roll = random.Next(1, 7);