This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site. For example, the app displays a message indicating that two numbers are equal only if they have the same value.
Many apps contain logic that makes decisions-the last example in this chapter demonstrates decision-making fundamentals by comparing numbers and then displaying messages based on the comparison results. You’ll perform various arithmetic calculations and save the results for later use. We then demonstrate an app that obtains two numbers from a user, calculates their sum and displays the result. We begin with several examples that simply display messages on the screen.
#Console app visual studio 2013 windows
In this chapter, we introduce console apps-these input and output text in a console window, which in Windows is known as the Command Prompt. Most of the C# apps you’ll study in this book process information and display results. 3.8 Decision Making: Equality and Relational Operators.3.5 Formatting Text with Console.Write and Console.WriteLine.3.3 Creating a Simple App in Visual Studio.3.2 A Simple C# App: Displaying a Line of Text.