You learned many important features of C# in this chapter. First you learned how to display data on the screen in a Command Prompt using the
Write-Line methods. Next, we showed how to use format strings and format items to create formatted output strings. You learned how to input data from the keyboard using the
ReadLine method. We discussed how to perform calculations using C#’s arithmetic operators. Finally, you learned to make decisions using the
if statement and the relational and equality operators. The apps presented here introduced you to basic programming concepts. As you’ll see in Chapter 4, C# apps typically contain just a few lines of code in method
Main—these statements normally ...