O'Reilly logo

Begin to Code with C# by Rob Miles

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

5. Making decisions in a program

Image

What you will learn

I’ve described a computer as a sausage machine, which accepts an input, does something with it, and then produces an output. This is a great way to start thinking about computers, but a computer actually does a lot more than that. Unlike a real-life sausage machine, which simply tries to create sausage from anything you put in it, a computer is able to respond to different inputs in different ways. In this chapter, you’ll discover how to make your programs respond to different inputs. You’ll also learn about the responsibility that comes with making the computer work in this way—you have to ...

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