O'Reilly logo

Computing with C# and the .NET Framework, 2nd Edition by Gittleman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4More Control Structures and Types

4.1 The AND, OR, and NOT Operators

4.2 Nested ifs and the switch Statement

4.3 The for and do Loops

4.4 Additional Primitive Types and Enumerations

4.5 Using the Math Library

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required