1/*
2 Copyright(C) 2003
3 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for EDUCATIONAL purposes
7 and without fee is hereby granted provided that this
8 copyright notice appears in all copies.
9
10 @date : September 1, 2003
11 @authorĀ : Salih Yurttas
12*/
13
14
15using System;
16
17public class DeclarationStatement10
18{
19
20 public static void Main(string[] args)
21 {
22 int a = 8;
23 int b = 2*a;
24
25 Console.WriteLine("a = {0}", a);
26
27 Console.WriteLine("b = {0}", b);
28
29 Console.WriteLine();
30
31 int[] aa = {1,2,4,8};
32
33 int n = aa.Length;
34 for(int i=0; i<n; i++)
35 Console.WriteLine("aa[{0}] = {1}", i, aa[i]);
36 }
37
38}