Create IOParser static class
This commit is contained in:
parent
6e09130629
commit
a42386b373
@ -4,14 +4,17 @@
|
|||||||
{
|
{
|
||||||
public static void Main()
|
public static void Main()
|
||||||
{
|
{
|
||||||
int count = ParseNumber();
|
int count = IOParser.ParseNumber();
|
||||||
for (int i = 0; i < count; i++)
|
for (int i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
var numbers = ParseNumbers();
|
var numbers = IOParser.ParseNumbers();
|
||||||
Console.WriteLine(numbers.Sum());
|
Console.WriteLine(numbers.Sum());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class IOParser
|
||||||
|
{
|
||||||
public static int[] ParseNumbers()
|
public static int[] ParseNumbers()
|
||||||
{
|
{
|
||||||
return Console.ReadLine()
|
return Console.ReadLine()
|
||||||
|
Loading…
Reference in New Issue
Block a user