C# Tutorials - Herong's Tutorial Examples - Version 3.2, by Dr. Herong Yang

Arrays and Loop Statements

This chapter provides tutorial examples and notes on arrays and loop statements. Topics include creating and using arrays; 'for' loop statements and examples; 'while' loop statements.

Creating and Using Arrays

Creating and Using Arrays - Example

"for" Loop Statements

"while" Loop Statements


  • An array is a data structure that can be used to store multiple values of the same type.
  • A "for" or "while" loop statement can be used to execute a block of statements multiple times.

Table of Contents

 About This Book

 Introduction of C# (C Sharp)

 Data Type and Variables

 Logical Expressions and Conditional Statements

Arrays and Loop Statements

 Data Type Features

 Floating-Point Data Types

 Passing Parameters to Methods

 Execution Environment Class

 Visual C# 2010 Express Edition

 Class Features

 C# Compiler and Intermediate Language

 Compiling C# Source Code Files

 Memory Usages of Processes

 Multithreading in C#

 System.IO.FileInfo Class

 System.Diagnostics.FileVersionInfo Class


 PDF Printing Version

Arrays and Loop Statements - Updated in 2012, by Dr. Herong Yang