C# Tutorial

C# Data Types

Data Types

C# includes several built-in types you will use in every program.

  • int
  • double
  • bool
  • string
  • decimal
  • arrays
var scores = new[] { 90, 88, 95 };
Console.WriteLine(scores[0]);
Try it Yourself
Run this CSHARP example in your local environment or course sandbox.