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 * Compute01.cs
14 */
15
16
17using System;
18
19namespace C
20{
21
22 public class Compute01
23 {
24 public static void FA(int inc)
25 {
26 int a;
27
28 Console.Write("-> a : ");
29 a = Int32.Parse(Console.ReadLine());
30 a += inc;
31 Console.WriteLine("a = {0}", a);
32 }
33
34 public static void FB(int inc)
35 {
36 int b;
37
38 Console.Write("-> b : ");
39 b = Int32.Parse(Console.ReadLine());
40 b += inc;
41 Console.WriteLine("b = {0}", b);
42 }
43
44 public static void Main(string[] args)
45 {
46 // some computations ...
47 FA(2);
48
49 // some more computations ...
50 FA(4);
51
52 // some more computations ...
53 FB(4);
54
55 // some more computations ...
56 FB(2);
57 }
58 }
59
60}