Yurttas/PL/OOL/CS/F/02/05/10/00/01/Compute.cs

 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 *  Compute.cs
14 */
15
16
17using System;
18
19namespace C
20{
21
22  public class Compute
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
45}