-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelloWorld.cs
More file actions
102 lines (87 loc) · 2.5 KB
/
HelloWorld.cs
File metadata and controls
102 lines (87 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
using System;
using System.Threading;
internal class Program
{
static void Main(string[] args)
{
string text = "HELLO WORLD";
string newText = "";
foreach(char c in text)
{
for(char x = 'A'; x <= 'Z'; x++)
{
Console.Clear();
Console.WriteLine("\n" + newText + x + "\n");
Thread.Sleep(10);
if (c == ' ' || x == c)
{
newText += c == ' ' ? ' ' : c;
break;
}
}
}
}
}
//-------------------------------------------------------
for (int i = 32; i <= 90 || i >= 97 || i <= 122; i++)
{
char x = (char)i;
Console.Clear();
Console.Write("\n" + newText + x + "\n");
Thread.Sleep(10);
if (x == c)
{
newText += c;
break;
}
}
////////////////////////////////////////////////////////////////
using System;
using System.Threading;
namespace ConsoleApp6
{
internal class Program
{
static void Main(string[] args)
{
string text = "*helL]O WORLD!";
string newText = "";
foreach (char c in text)
{
if (((int)c < 65 || (int)c > 90) && ((int)c <97 || (int)c > 122))
{
for (int i = 32; i <= 64 || i >= 91 || i <= 96; i++)
{
char x = (char)i;
//Console.Clear();
Console.WriteLine("\n" + newText + x);
Thread.Sleep(10);
if (x == c)
{
newText += c;
break;
}
}
}
else
{
for (int i = 65; i <= 122; i++)
{
if ((i >= 65 && i <= 90) || (i >= 97 && i <= 122))
{
char x = (char)i;
//Console.Clear();
Console.WriteLine("\n" + newText + x);
Thread.Sleep(10);
if (x == c)
{
newText += c;
break;
}
}
}
}
}
}
}
}