Introduction to C#
First steps into Microsoft .NET language C#: using, printing with Console.WriteLine, and comments.
Simple enough for a 5-year-old to understand
Print with Console.WriteLine
With top-level statements in C# 9+, you can write programs without writing a class/Main method. Console.WriteLine prints to the screen and moves to the next line.
using System;Console.WriteLine("Hello!");Comment line
using System;// This is a comment — does not run.Console.WriteLine("Code is here");🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (2 left)
🎯 Expected output: Hello World