-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInput.cs
More file actions
23 lines (21 loc) · 758 Bytes
/
Copy pathInput.cs
File metadata and controls
23 lines (21 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TabularMethod
{
public class Input
{
public List<int> Minterms = new List<int>();
public Input()
{
Console.WriteLine("Press enter after typing each minterm.");
Console.WriteLine("Press enter twice after typing the last minterm.");
Console.WriteLine("If you were hesitant whether you enter a specific minterm or not,");
Console.WriteLine("just enter it again! We'll promise to count it once ;)");
Minterms = Tools.GetManyNum("Please enter the Minterms here:").Distinct().ToList();
Minterms.Sort();
}
}
}