From 1ef47c6ff548b55ff51a57ae52f51c6a6b24e8dc Mon Sep 17 00:00:00 2001 From: Fionn Date: Wed, 11 May 2022 09:50:02 +0200 Subject: [PATCH] idk --- EANValidator/EANValidator/Program.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/EANValidator/EANValidator/Program.cs b/EANValidator/EANValidator/Program.cs index 052d830..12f873d 100644 --- a/EANValidator/EANValidator/Program.cs +++ b/EANValidator/EANValidator/Program.cs @@ -1,8 +1,6 @@ // See https://aka.ms/new-console-template for more information Console.WriteLine("Hello, World!"); - - while (true) { string mode = "NULL"; int givenCheckNo = 0; @@ -10,14 +8,14 @@ while (true) Console.Write("Pls input complete EAN:\n-> "); string input = Console.ReadLine(); + if (input == null || input == "") continue; + if (input == "q") { Console.WriteLine("Bye bye!"); return; } - if (input == null || input == "") continue; - string[] split = input.Select(x => x.ToString()).ToArray(); if (split.Count() == 13) mode = "VALIDATE";