4More Control Structures and Types
4.1 The AND, OR, and NOT Operators
4.2 Nested ifs and the switch Statement
4.4 Additional Primitive Types and Enumerations
4.6 Solving Problems with C#: Iterative Development
In Chapters 2 and 3 we covered the essential concepts needed to start solving problems with C#. With the types int and double, the assignment, and if-else and while statements we can solve complex problems. But this is a bare bones set of tools. A good carpenter can do some fine construction with a few tools, but will be much more productive with a variety of tools to make the job easier. In this chapter, we will add some tools to build C# programs more easily.
Logical operators make ...
Get Computing with C# and the .NET Framework, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.