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

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