Yurttas/PL/OOL/CS/F/02/06/00/String00.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
14
15using System;
16
17public class String00
18{
19
20  public static void Main(string[] args)
21  {
22    string a;
23
24    a = "tiger";
25
26    Console.WriteLine("a = {0}", a);
27
28    string b = "lion";
29
30    Console.WriteLine();
31    Console.WriteLine("b = {0}", b);
32
33    a = "straw";
34
35    b = "berry";
36
37    Console.WriteLine();
38    Console.WriteLine("{0}{1}", a, b);
39
40    a += b;
41
42    Console.WriteLine();
43    Console.WriteLine("a = {0}", a);
44
45    a = "golden";
46    b = "apple";
47
48    Console.WriteLine();
49    Console.WriteLine(a+b);
50
51    Console.WriteLine();
52    Console.Write("Key : ");
53    string Key = Console.ReadLine();
54
55    Console.WriteLine();
56    Console.WriteLine("Key = {0}", Key);
57  }
58
59}