Skip to content

Commit d9f39ee

Browse files
committed
add Main
1 parent 9015977 commit d9f39ee

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
namespace StackCalculator;
2+
3+
public class Solution
4+
{
5+
static void Main()
6+
{
7+
Console.WriteLine("Please, enter the expression");
8+
var inputString = Console.ReadLine();
9+
if (inputString == null)
10+
{
11+
return;
12+
}
13+
var subs = inputString.Split(' ');
14+
Calculator stackCalculator = new Calculator();
15+
Console.WriteLine($"{stackCalculator.CountTheExpressionInPostfixForm(subs)}");
16+
}
17+
}

Stack/Stack/Solution.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Stack;
2+
3+
public class Solution
4+
{
5+
static void Main()
6+
{
7+
8+
}
9+
}

0 commit comments

Comments
 (0)