using static System.Console instead of Debug()

This commit is contained in:
Colin McMillen 2020-11-17 14:39:56 -05:00
parent db9e9a33f4
commit ea6859a54b

View File

@ -1,22 +1,11 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using static System.Console;
namespace Euler { namespace Euler {
class Program { 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() { static long Problem1() {
long sum = 0; long sum = 0;
for (long i = 1; i < 1000; i++) { for (long i = 1; i < 1000; i++) {
@ -102,7 +91,6 @@ namespace Euler {
} }
if (IsPalindromicNumber(target)) { if (IsPalindromicNumber(target)) {
largest = target; largest = target;
Debug(largest);
} }
} }
} }
@ -110,7 +98,7 @@ namespace Euler {
} }
static void Main(string[] args) { static void Main(string[] args) {
Debug(Problem4()); WriteLine(Problem4());
} }
} }
} }