Store and retrieve data using literal and variable values in C#

Beginner
Developer
.NET
Visual Studio Code

Use data in your applications by creating literal values and variable values of different data types.

Learning objectives

After you complete this module, you'll be able to:

  • Create literal values for five basic data types
  • Declare and initialize variables
  • Retrieve and set values in variables
  • Allow the compiler to determine the data type for your variable when initializing

Prerequisites

  • Must understand basic C# syntax rules
  • Must understand how to use Console.WriteLine()