-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
83 lines (64 loc) · 1.96 KB
/
Program.cs
File metadata and controls
83 lines (64 loc) · 1.96 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
using System;
namespace ruz_AI
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello i am luke");
method1();
}
private static void method1()
{
Console.WriteLine("Enter Your Name.");
string name1 = Console.ReadLine();
Console.WriteLine($"Hello {name1}.");
Console.WriteLine($"What game do you play?\n{name1}!");
String gamename = Console.ReadLine();
Console.WriteLine($"What's your level in {gamename}");
string gamelvl = Console.ReadLine();
int gamelevel = Convert.ToInt32(gamelvl);
if (gamelevel < 15)
{
Console.WriteLine("Ha! Ha!..");
}
else if (gamelevel < 40)
{
Console.WriteLine("noobs..");
}
else if (gamelevel > 60)
{
Console.WriteLine("Superb........");
}
else
{
Console.WriteLine("Good.");
}
}
private static void methodt()
{
string agestr = Console.ReadLine();
int age = Convert.ToInt32(agestr);
if (age < 3)
{
Console.WriteLine("you are just born");
}
else if (age > 60)
{
Console.WriteLine("you have to be below 45 years old.\nTo transact.");
}
else if (age < 18)
{
Console.WriteLine("your age is below 18 years old. \nyou can't transact.");
}
else if (age < 16)
{
Console.WriteLine("complete your high school.");
}
else
{
Console.WriteLine("please continue.");
}
}
}
}