1
0

Create IOParser static class

This commit is contained in:
Serghei Cebotari 2023-12-07 22:28:25 +03:00
parent 6e09130629
commit a42386b373

View File

@ -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()