-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSolution.cs
More file actions
81 lines (77 loc) · 2.71 KB
/
Solution.cs
File metadata and controls
81 lines (77 loc) · 2.71 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
using System;
namespace cSharpSolutions
{
internal class Solution
{
static void Main(string[] args)
{
while (true)
{
Console.Clear();
Console.WriteLine("=== cSharp Practicle Solutions ===");
Console.WriteLine("1 - Run Solution 1");
Console.WriteLine("2 - Run Solution 2");
Console.WriteLine("3 - Run Solution 3");
Console.WriteLine("4 - Run Solution 4");
Console.WriteLine("5 - Run Solution 5");
Console.WriteLine("6 - Run Solution 6");
Console.WriteLine("7 - Run Solution 7");
Console.WriteLine("8 - Run Solution 8");
Console.WriteLine("9 - Run Solution 9");
Console.WriteLine("10 - Run Solution 10");
Console.WriteLine("0 - Exit");
Console.Write("\nEnter your choice: ");
string input = Console.ReadLine();
if (input == "0") break;
switch (input)
{
case "1":
//Solution 1
Solution1.Run();
break;
case "2":
//Solution 2
Solution2.Run();
break;
case "3":
//Solution 3
Solution3.Run();
break;
case "4":
//Solution 4
Solution4.Run();
break;
case "5":
//Solution 5
Solution5.Run();
break;
case "6":
//Solution 6
Solution6.Run();
break;
case "7":
//Solution 7
Solution7.Run();
break;
case "8":
//Solution 8
Solution8.Run();
break;
case "9":
//Solution 9
Solution9.Run();
break;
case "10":
//Solution 10
Solutionn10.Run();
break;
default:
Console.WriteLine("Invalid choice.");
break;
}
Console.WriteLine("\nPress any key to return to menu...");
Console.ReadKey();
}
}
}
}