Perform basic operations on numbers in C#

Beginner
Developer
Higher Education Educator
K-12 Educator
Student
.NET

Learn the operators and techniques used to perform basic math operations on numeric data.

Learning objectives

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

  • Perform mathematical operations on numeric values

  • Observe implicit type conversion between strings and numeric values

  • Temporarily convert one data type into another

Prerequisites

  • Beginner level experience with basic C# syntax rules

  • Beginner level experience with displaying a message to a console using the Console.WriteLine() and Console.Write() methods

  • Beginner level experience with creating literal values and declare variables of basic data types like string, int, and decimal

  • Beginner level experience with string concatenation and string interpolation