| 1 |
using System; |
| 2 |
|
| 3 |
namespace helferlein.private.Greetings |
| 4 |
{ |
| 5 |
class Program |
| 6 |
{ |
| 7 |
static void Main(string[] args) |
| 8 |
{ |
| 9 |
char[] firstLine = new char[7] {(char)78, (char)101, (char)116, new char(), (char)46, new char(), new char() }; |
| 10 |
firstLine[3] = firstLine[2]; |
| 11 |
for (int i = 5; i < firstLine.Length; i++) { firstLine = firstLine[4]; } |
| 12 |
|
| 13 |
char[] secondLine = new char[19] { (char)71, (char)114, (char)117, (char)223, (char)32, (char)97, new char(), (char)115, new char(), (char)214, new char(), new char(), new char(), new char(), new char(), new char(), (char)105, (char)99, (char)104 }; |
| 14 |
secondLine[6] = secondLine[2]; |
| 15 |
secondLine[8] = secondLine[4]; |
| 16 |
secondLine[10] = secondLine[7]; |
| 17 |
secondLine[11] = firstLine[2]; |
| 18 |
secondLine[12] = firstLine[1]; |
| 19 |
for (int i = 13; i <= 14; i++  { secondLine = secondLine[1]; } |
| 20 |
secondLine[15] = firstLine[1]; |
| 21 |
|
| 22 |
char[] thirdLine = new char[7] { (char)77, new char(), new char(), new char(), new char(), new char(), (char)108 }; |
| 23 |
thirdLine[1] = secondLine[16]; |
| 24 |
thirdLine[2] = secondLine[17]; |
| 25 |
thirdLine[3] = secondLine[18]; |
| 26 |
thirdLine[4] = secondLine[5]; |
| 27 |
thirdLine[5] = firstLine[1]; |
| 28 |
|
| 29 |
foreach(char c in firstLine) |
| 30 |
{ |
| 31 |
Console.Write(c.ToString()); |
| 32 |
} |
| 33 |
Console.Write("\n"); |
| 34 |
foreach (char c in secondLine) |
| 35 |
{ |
| 36 |
Console.Write(c.ToString()); |
| 37 |
} |
| 38 |
Console.Write("\n"); |
| 39 |
foreach (char c in thirdLine) |
| 40 |
{ |
| 41 |
Console.Write(c.ToString()); |
| 42 |
} |
| 43 |
Console.Write("\n"); |
| 44 |
} |
| 45 |
|
| 46 |
} |
| 47 |
} |
| 48 |
|