Introduction
Most programs need to work with data—numbers to calculate, text to display, and values that change based on user input. In C#, working with data means understanding data types, performing calculations, and knowing how to convert between different types when needed.
In this module, you learn about C#'s numeric data types, how to perform math operations, and how to convert values between types. You put these skills together in an exercise that calculates a restaurant tip.
Learning objectives
In this module, you will:
- Recognize C#'s common numeric data types
- Perform basic math operations with numbers
- Convert values between different data types