What You’ll Learn
- Basic syntax and variables
- Data types and operators
- Conditionals and loops
- Functions and methods
- Object-Oriented Programming concepts
- Working with .NET libraries
C# (pronounced "C Sharp") is a modern, object-oriented programming language developed by Microsoft. It's widely used for game development, desktop applications, and enterprise software.
Create a C# console app that asks for your favorite color and displays a message.
// Program.cs
using System;
class Program
{
static void Main()
{
Console.Write("Enter your favorite color: ");
string color = Console.ReadLine();
Console.WriteLine($"Wow! {color} is a great color!");
}
}