-
Notifications
You must be signed in to change notification settings - Fork 0
/
C# code.
170 lines (115 loc) · 8.01 KB
/
C# code.
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
namespace Randomstuff
{
class Program
{
static void Main(string[] args)
{
int x;
x = 7551;
int y = 4470;
int z = x + y;
bool alive = true;
char symbol = '@';
String name = "W4CKY";
const double pi = 3.14159;
double a = 3.14;
int b = Convert.ToInt32(a);
int c = 123;
double d = Convert.ToDouble(c) + 0.5;
int e = 321;
String f = Convert.ToString(e);
String g = "¤";
char h = Convert.ToChar(g);
String i = "true";
bool j = Convert.ToBoolean(i);
Console.WriteLine("██╗ ██╗██╗ ██╗ ██████╗██╗ ██╗██╗ ██╗ ███████╗ █████╗ ██╗ ██╗███████╗██████╗ \r\n██║ ██║██║ ██║██╔════╝██║ ██╔╝╚██╗ ██╔╝ ██╔════╝██╔══██╗██║ ██║██╔════╝██╔══██╗\r\n██║ █╗ ██║███████║██║ █████╔╝ ╚████╔╝ ███████╗███████║██║ ██║█████╗ ██████╔╝\r\n██║███╗██║╚════██║██║ ██╔═██╗ ╚██╔╝ ╚════██║██╔══██║╚██╗ ██╔╝██╔══╝ ██╔══██╗\r\n╚███╔███╔╝ ██║╚██████╗██║ ██╗ ██║ ███████║██║ ██║ ╚████╔╝ ███████╗██║ ██║\r\n ╚══╝╚══╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝\r\n ");
Thread.Sleep(1000);
Console.WriteLine("Press any button to continue.");
Console.ReadKey();
Console.WriteLine("\nName here: ");
String Coolname = Console.ReadLine();
Console.WriteLine("Hello " + Coolname);
Console.WriteLine("Username here: ");
String Username = Console.ReadLine();
Console.WriteLine("Your Username is " + symbol + Username);
Console.WriteLine("Email here: ");
String Email = Console.ReadLine();
Console.WriteLine("Age here: ");
int Coolage = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("You are " + Coolage + " years old");
Console.WriteLine("Website name here: ");
String Website = Console.ReadLine();
Console.WriteLine("Your website is: " + Website);
Console.WriteLine("Password here: ");
String Password = Console.ReadLine();
Console.WriteLine("Are you a bot? (yes/no)");
string response = Console.ReadLine();
if (response.ToLower() == "yes")
{
Console.WriteLine("Goodbye, bot!");
Environment.Exit(0);
}
else if (response.ToLower() == "no")
Console.WriteLine("Welcome!");
Console.Write("Loading");
Thread.Sleep(1000);
Console.Write(".");
Thread.Sleep(1000);
Console.Write(".");
Thread.Sleep(1000);
Console.Write(".");
Console.WriteLine("\nName is: " + Coolname);
Thread.Sleep(1000);
Console.Write(".");
Thread.Sleep(100);
Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Console.WriteLine("\nYour age is: " + Coolage);
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Console.WriteLine("\nUsername is: " + symbol + Username);
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Console.WriteLine("\nEmail is: " + Email);
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Console.WriteLine("\nWebsite is: " + Website);
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Console.WriteLine("\nPassword is: " + Password);
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100);
Console.WriteLine("\nCurrently alive: " + alive);
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100); Console.Write(".");
Thread.Sleep(100);
Console.WriteLine("\nYour symbol is: " + symbol);
Thread.Sleep(100);
Console.WriteLine("Making a folder"); Thread.Sleep(1000); Console.Write("."); Thread.Sleep(1000); Console.Write(".");Thread.Sleep(1000); Console.Write(".");
string filePath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\UserAccounts.txt";
using (StreamWriter writer = new StreamWriter(filePath, true))
{
writer.WriteLine("-------------------------------------------");
writer.WriteLine("██╗ ██╗██╗ ██╗ ██████╗██╗ ██╗██╗ ██╗ ███████╗ █████╗ ██╗ ██╗███████╗██████╗ \r\n██║ ██║██║ ██║██╔════╝██║ ██╔╝╚██╗ ██╔╝ ██╔════╝██╔══██╗██║ ██║██╔════╝██╔══██╗\r\n██║ █╗ ██║███████║██║ █████╔╝ ╚████╔╝ ███████╗███████║██║ ██║█████╗ ██████╔╝\r\n██║███╗██║╚════██║██║ ██╔═██╗ ╚██╔╝ ╚════██║██╔══██║╚██╗ ██╔╝██╔══╝ ██╔══██╗\r\n╚███╔███╔╝ ██║╚██████╗██║ ██╗ ██║ ███████║██║ ██║ ╚████╔╝ ███████╗██║ ██║\r\n ╚══╝╚══╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝ ╚═══╝ ╚══════╝╚═╝ ╚═╝\r\n ");
writer.WriteLine("-------------------------------------------");
writer.WriteLine("Name; " + Coolname);
writer.WriteLine("Username: " + Username);
writer.WriteLine("Email: " + Email);
writer.WriteLine("Password: " + Password);
writer.WriteLine("Age: " + Coolage);
writer.WriteLine("-------------------------------------------");
}
Console.WriteLine("\nYour username and email have been saved to UserAccounts.txt in your Documents folder.");
Thread.Sleep(100);
Console.WriteLine("Press any button to quit: ");
Console.ReadKey();
}
}
}