From ea6859a54bae1a5cd3c7023435fab0450dd95b27 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 17 Nov 2020 14:39:56 -0500 Subject: [PATCH] using static System.Console instead of Debug() --- Program.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Program.cs b/Program.cs index 380abb3..d5cfc8b 100644 --- a/Program.cs +++ b/Program.cs @@ -1,22 +1,11 @@ using System; using System.Collections.Generic; +using static System.Console; namespace Euler { class Program { - static void Debug(long l) { - Console.WriteLine(l); - } - - static void Debug(string s) { - Console.WriteLine(s); - } - - static void Debug(bool b) { - Console.WriteLine(b); - } - static long Problem1() { long sum = 0; for (long i = 1; i < 1000; i++) { @@ -102,7 +91,6 @@ namespace Euler { } if (IsPalindromicNumber(target)) { largest = target; - Debug(largest); } } } @@ -110,7 +98,7 @@ namespace Euler { } static void Main(string[] args) { - Debug(Problem4()); + WriteLine(Problem4()); } } } \ No newline at end of file