idk
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
// See https://aka.ms/new-console-template for more information
|
// See https://aka.ms/new-console-template for more information
|
||||||
Console.WriteLine("Hello, World!");
|
Console.WriteLine("Hello, World!");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
string mode = "NULL"; int givenCheckNo = 0;
|
string mode = "NULL"; int givenCheckNo = 0;
|
||||||
@@ -10,14 +8,14 @@ while (true)
|
|||||||
Console.Write("Pls input complete EAN:\n-> ");
|
Console.Write("Pls input complete EAN:\n-> ");
|
||||||
string input = Console.ReadLine();
|
string input = Console.ReadLine();
|
||||||
|
|
||||||
|
if (input == null || input == "") continue;
|
||||||
|
|
||||||
if (input == "q")
|
if (input == "q")
|
||||||
{
|
{
|
||||||
Console.WriteLine("Bye bye!");
|
Console.WriteLine("Bye bye!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input == null || input == "") continue;
|
|
||||||
|
|
||||||
string[] split = input.Select(x => x.ToString()).ToArray();
|
string[] split = input.Select(x => x.ToString()).ToArray();
|
||||||
|
|
||||||
if (split.Count() == 13) mode = "VALIDATE";
|
if (split.Count() == 13) mode = "VALIDATE";
|
||||||
|
|||||||
Reference in New Issue
Block a user