Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 3. Introduction to C# Applications

3. Introduction to C# Applications

What’s in a name? That which we call a rose by any other name would smell as sweet.

William Shakespeare

When faced with a decision, I always ask, “What would be the most fun?”

Peggy Walker

Objectives

In this chapter you’ll learn:

  • To write simple C# applications using code rather than visual programming.

  • To input data from the keyboard and output data to the screen.

  • To declare and use data of various types.

  • To store and retrieve data from memory.

  • To use arithmetic operators.

  • To determine the order in which operators are applied.

  • To write decision-making statements.

  • To use relational and equality operators.

Outline

3.1Introduction
3.2A Simple C# Application: Displaying a Line of Text
3.3Creating a Simple Application in Visual C# Express
3.4Modifying Your Simple C# Application
3.5Formatting Text with Console.Write and Console.WriteLine
3.6Another C# Application: Adding Integers
3.7Memory Concepts
3.8Arithmetic
3.9Decision Making: Equality and Relational Operators
3.10Wrap-Up
Summary

Terminology

Self-Review Exercises

Answers to Self-Review Exercises

Exercises

Making a Difference Exercises