K0 Taster course “C# in ten hours”
Write a first program of your own and find out whether programming suits you.
Who it is for
For everyone who wants to find out whether programming suits them – no prior knowledge, no sign-up.
Prerequisites
None, apart from a computer with the .NET SDK or a GitHub account for Codespaces in the browser.
Afterward, you can
- Write and run a C# program
- Store values in variables and print them
- Decide and repeat with branches and loops
- Build a small notebook on the console
- Judge with the self-test whether programming suits you
Contents
- 1
What a program is
- 2
The first program as a file-based app
dotnet run hello.cs with C# 14 and .NET 10
- 3
Variables
- 4
Branches and loops
- 5
A notebook on the console
the first building block of the Kladde
About 12 hours in all (indicative).
Lessons
The lessons are open on this site, without signing up. It is best to work through them in order.
-
Lesson 1 · about 45 minutes
What a program is
-
Lesson 2 · about 60 minutes
Setting up your tools
-
Lesson 3 · about 60 minutes
Your first program: hello.cs
-
Lesson 4 · about 90 minutes
Variables, math and input
-
Lesson 5 · about 90 minutes
Decisions: if and else
-
Lesson 6 · about 90 minutes
Loops: while and for
-
Lesson 7 · about 60 minutes
Lists: many values in one variable
-
Lesson 8 · about 60 minutes
Methods of your own: code with a name
-
Lesson 9 · about 90 minutes
Project: your notebook on the console
-
Lesson 10 · about 60 minutes
Saving notes and wrapping up
-
Self-test · about 30 minutes
Self-test
Final project: the Kladde
What the Kladde can do after this course
A notebook on the console.
You end up with a working program and a self-test with its evaluation, which you take on your own.
Certifications
No certification is planned for the taster course.
Keep learning with Microsoft Learn
Microsoft's learning paths and documentation that go with this course.