-
Book Overview & Buying
-
Table Of Contents
Fundamentals for Self-Taught Programmers
By :
In this chapter, you learned about the importance of data in a software program and how to store various types of data in C#, starting with a variable. This variable can hold different types of values, called data types. In a strongly typed language such as C#, data types must be used consistently with appropriate operators; otherwise, it could cause errors in the software. You then created your first variable in C#, worked with various data types, and updated the values in a variable.
You learned that string data types can be used to make textual values, such as sentences and messages, and can be combined through concatenation. Numbers can be whole or fractional with decimal points and can do all mathematical operations and be customized for precision. Booleans can be used to compare values that equate to true or false. Arrays contain multiple values of the same data type. Keep practicing with the MyBudget app, explore the documentation in the Further reading section, and...